Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (73 loc) · 1.99 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (73 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
supabase-db:
build:
context: .
dockerfile: Dockerfile
target: supabase-db
networks:
- tests
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
healthcheck:
test: ["CMD", "pg_isready", "-h", "127.0.0.1", "-U", "postgres"]
interval: 2s
timeout: 5s
retries: 60
nhost-db:
build:
context: .
dockerfile: Dockerfile
target: nhost-db
networks:
- tests
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
healthcheck:
test: ["CMD", "pg_isready", "-h", "127.0.0.1", "-U", "postgres"]
interval: 2s
timeout: 5s
retries: 60
nhost-storage:
image: mockoon/cli:latest
command: ["--data", "/mockoon/api.json", "--port", "80", "--disable-log-to-file"]
networks:
- tests
volumes:
- ./tests/fixtures/nhost:/mockoon
supabase-api:
image: mockoon/cli:latest
command: ["--data", "/mockoon/api.json", "--port", "80", "--disable-log-to-file"]
networks:
- tests
volumes:
- ./tests/fixtures/supabase:/mockoon
tests:
image: appwrite/base:2.2.1
entrypoint: ["tail", "-f", "/dev/null"]
networks:
- tests
volumes:
- ./:/usr/src/code
# phpunit comes from the root toolchain, as on the host; its autoloader
# also loads files from the sibling packages, relative to the vendor dir
- ../../vendor:/usr/src/toolchain:ro
- ../../packages:/usr/src/packages:ro
working_dir: /usr/src/code
depends_on:
supabase-db:
condition: service_healthy
nhost-db:
condition: service_healthy
nhost-storage:
condition: service_started
supabase-api:
condition: service_started
environment:
- NHOST_DB_URL=postgres://postgres:postgres@nhost-db:5432/postgres
- SUPABASE_DB_URL=postgres://postgres:postgres@supabase-db:5432/postgres
networks:
tests: