-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
68 lines (63 loc) · 1.73 KB
/
docker-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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: "3.9"
services:
postgres:
image: postgres:10.17
restart: always
environment:
POSTGRES_USER: ${PostgresUser}
POSTGRES_PASSWORD: ${PostgresPassword}
POSTGRES_DB: ${PostgresDb}
ports:
- "${postgresPort}:5432"
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${PostgresUser} -d ${PostgresDb}"]
interval: 10s
timeout: 5s
retries: 5
saga:
build:
context: ./backend
dockerfile: Dockerfile
environment:
- postgresPort=${postgresPort}
- PostgresServer=${PostgresServer}
- PostgresUser=${PostgresUser}
- PostgresPassword=${PostgresPassword}
- PostgresDb=${PostgresDb}
- SinginKey=${SinginKey}
- EmailSettings__SmtpServer=${EmailSettings__SmtpServer}
- EmailSettings__SmtpPort=${EmailSettings__SmtpPort}
- EmailSettings__Username=${EmailSettings__Username}
- EmailSettings__Password=${EmailSettings__Password}
- EmailSettings__SenderEmail=${EmailSettings__SenderEmail}
ports:
- "5000:80"
depends_on:
postgres:
condition: service_healthy
database-updater:
build:
context: ./backend
dockerfile: Dockerfile.update
environment:
- postgresPort=${postgresPort}
- PostgresServer=${PostgresServer}
- PostgresUser=${PostgresUser}
- PostgresPassword=${PostgresPassword}
- PostgresDb=${PostgresDb}
- SinginKey=${SinginKey}
depends_on:
postgres:
condition: service_healthy
frontend:
build:
context: ./front
dockerfile: Dockerfile
environment:
- REACT_APP_BASE_URL=${REACT_APP_BASE_URL}
ports:
- "3000:3000"
volumes:
db_data: