-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
126 lines (118 loc) · 2.92 KB
/
docker-compose.yaml
File metadata and controls
126 lines (118 loc) · 2.92 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
networks:
e2e:
name: e2e
ipam:
config:
- subnet: 172.28.0.0/16
gateway: 172.28.5.254
services:
db:
container_name: db
networks:
- e2e
image: postgres:14
healthcheck:
test: pg_isready -U postgres
interval: 2s
timeout: 2s
retries: 10
ports:
- "5433:5432"
environment:
POSTGRES_PASSWORD: postgres
consent-api:
container_name: consent-api
networks:
- e2e
image: consent-api:latest
platform: linux/arm64
build:
context: ./apps/consent-api
dockerfile: Dockerfile
ports:
- "8000:80"
depends_on:
db:
condition: service_healthy
volumes:
- "./client:/home/app/client"
- "./apps/consent-api:/home/app/consent-api"
- "${HOME}/.config/gcloud/application_default_credentials.json:/tmp/google-credentials.json:ro"
environment:
USE_FAKE_BIGQUERY: "false"
DATABASE_URL: postgresql+asyncpg://postgres:postgres@db:5432/postgres
DB_NAME: "postgres"
DB_USER: "postgres"
DB_PASSWORD: "postgres"
DB_PORT: "5432"
DB_HOST: "db"
PORT: "80"
ENV: "${ENV:-development}"
FLAG_FIXTURES: "True"
GOOGLE_APPLICATION_CREDENTIALS: "/tmp/google-credentials.json"
GOOGLE_CLOUD_PROJECT: "sde-consent-api"
mock-site-1:
container_name: mock-site-1
networks:
- e2e
image: mock-site:latest
build:
context: .
dockerfile: ./apps/mock-site/Dockerfile
ports:
- "8001:80"
volumes:
- "./client:/home/app/client"
- "./apps/mock-site:/home/app/mock-site"
entrypoint: ["make", "run"]
environment:
PORT: "80"
CONSENT_API_ORIGIN: "http://consent-api"
OTHER_SERVICE_ORIGIN: "http://mock-site-2"
ENV: "${ENV:-development}"
mock-site-2:
container_name: mock-site-2
networks:
- e2e
image: mock-site:latest
build:
context: .
dockerfile: ./apps/mock-site/Dockerfile
ports:
- "8002:80"
volumes:
- "./client:/home/app/client"
- "./apps/mock-site:/home/app/mock-site"
entrypoint: ["make", "run"]
environment:
PORT: "80"
CONSENT_API_ORIGIN: "http://consent-api"
OTHER_SERVICE_ORIGIN: "http://mock-site-1"
ENV: "${ENV:-development}"
selenium-chrome:
container_name: selenium-chrome
image: selenium/standalone-chrome:latest
shm_size: 2gb
networks:
- e2e
platform: linux/amd64 # Enable x86 emulation
ports:
- "4444:4444"
- "5900:5900"
environment:
- SCREEN_WIDTH=1920
- SCREEN_HEIGHT=1080
- SCREEN_DEPTH=24
- DISPLAY=:99.0
novnc:
container_name: novnc
image: dorowu/ubuntu-desktop-lxde-vnc
ports:
- "6080:80" # NoVNC WebSocket port
networks:
- e2e
environment:
- USER=selenium
- PASSWORD=password # Optional password for VNC
depends_on:
- selenium-chrome