-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
51 lines (47 loc) · 1.18 KB
/
compose.yaml
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
services:
client:
build:
context: ./client
dockerfile: Dockerfile
ports:
- "5173:5173"
environment:
- VITE_API_URL=http://localhost:5064
api:
build:
context: ./api
dockerfile: Dockerfile
volumes: # use host daemon
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "5064:5064"
environment:
ConnectionStrings__DB: "Host=db;Port=5432;Database=restrictednl-db;Username=postgres;Password=postgres;"
ConnectionStrings__Redis: "redis:6379"
depends_on:
db:
condition: service_healthy
redis:
image: redis:7.2.7
selenium:
image: selenium/standalone-chrome:4.9.0
# there is no support for arm64 chrome images
# force users to download the x86_64 image and emulate it
platform: linux/amd64
shm_size: 2gb
ports:
- "7900:7900"
- "4444:4444"
db:
image: postgres:17.0
ports:
- "5433:5432"
environment:
POSTGRES_DB: restrictednl-db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d restrictednl-db"]
interval: 5s
timeout: 5s
retries: 5