-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (57 loc) · 1.33 KB
/
docker-compose.yml
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
services:
supabase-db:
build:
context: .
target: supabase-db
ports:
- "5432:5432"
networks:
- tests
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
nhost-db:
build:
context: .
target: nhost-db
networks:
- tests
ports:
- "5433:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
nhost-storage:
image: mockoon/cli:latest
command: ["--data", "/mockoon/api.json", "--port", "80", "--disable-log-to-file"]
networks:
- tests
volumes:
- ./tests/Migration/resources/nhost:/mockoon
supabase-api:
image: mockoon/cli:latest
command: ["--data", "/mockoon/api.json", "--port", "80", "--disable-log-to-file"]
networks:
- tests
volumes:
- ./tests/Migration/resources/supabase:/mockoon
tests:
build:
context: .
networks:
- tests
volumes:
- ./src:/app/src
- ./tests:/app/tests
- ./phpunit.xml:/app/phpunit.xml
depends_on:
- supabase-db
- nhost-db
- nhost-storage
environment:
- NHOST_DB_URL=postgres://postgres:postgres@nhost-db:5432/postgres
- SUPABASE_DB_URL=postgres://postgres:postgres@supabase-db:5432/postgres
networks:
tests: