-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (66 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
66 lines (66 loc) · 1.35 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
services:
db:
image: postgres:15.2
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: pgpass
POSTGRES_DB: postgres
volumes:
- /var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "pguser", "-d", "postgres", "-h", "localhost", "-p", "5432"]
interval: 10s
timeout: 5s
retries: 5
api:
build:
context: ./server
dockerfile: Dockerfile
environment:
PG_HOST: db
PG_PORT: 5432
POSTGRES_USER: pguser
POSTGRES_PASSWORD: pgpass
POSTGRES_DB: postgres
DOCKER: true
restart: always
ports:
- 3001:3001
depends_on:
db:
condition: service_healthy
flask-api:
build:
context: ./flask-server
dockerfile: Dockerfile
restart: always
ports:
- 80:80
depends_on:
- api
client:
build:
context: ./client
dockerfile: Dockerfile
restart: always
ports:
- 5173:5173
environment:
VITE_BACKEND_URL: $VITE_BACKEND_URL
depends_on:
- api
e2e:
image: cypress
build:
context: ./client
dockerfile: cypress.Dockerfile
container_name: cypress
depends_on:
- api
- client
environment:
CYPRESS_baseUrl: http://client:5173
#command: npx cypress run