-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (77 loc) · 1.66 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
frontend:
container_name: scoutflow-frontend
build:
context: ./web-app
args:
REACT_APP_API_PUBLIC_BASEURL: https://scoutflow.mazettt.fr/api
REACT_APP_FIREBASE_CONFIG: ${FIREBASE_CONFIG}
restart: always
ports:
- 7271:80
networks:
- backend-frontend-network
depends_on:
backend:
condition: service_started
backend:
container_name: scoutflow-backend
build: ./backend
restart: always
ports:
- 7272:8080
networks:
- db-backend-network
- backend-frontend-network
secrets:
- appsettings.json
depends_on:
db:
condition: service_healthy
dbinit:
condition: service_completed_successfully
dbinit:
container_name: scoutflow-dbinit
build:
context: ./db
dockerfile: Dockerfile.init
networks:
- db-backend-network
env_file:
- ./db/.env.docker
depends_on:
db:
condition: service_healthy
db:
container_name: scoutflow-db
image: postgres
restart: always
user: postgres
secrets:
- db-password
volumes:
- db-data:/var/lib/postgresql/data
networks:
- db-backend-network
environment:
- POSTGRES_DB=ScoutFlow
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
expose:
- 5432
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
db-data:
networks:
db-backend-network:
driver: bridge
backend-frontend-network:
driver: bridge
secrets:
db-password:
file: db/password.txt
appsettings.json:
file: backend/ScoutFlowAPI/appsettings.json