-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (55 loc) · 1.3 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
version: '3.3'
services:
postgres:
restart: always
build: ./postgres
environment:
- POSTGRES_DB=${POSTGRES_DB:?error}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?error}
- POSTGRES_USER=${POSTGRES_USER:?error}
volumes:
- "postgres:/var/lib/postgresql/data"
ports:
- "127.0.0.1:5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
math:
build: ./generator
environment:
- POSTGRES_DB=${POSTGRES_DB:?error}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?error}
- POSTGRES_USER=${POSTGRES_USER:?error}
- POSTGRES_HOST=${POSTGRES_HOST:?error}
- POSTGRES_PORT=${POSTGRES_PORT:?error}
ports:
- '127.0.0.1:8080:8080'
depends_on:
postgres:
condition: service_healthy
polis-report:
build: ./client-report
restart: always
ports:
- '5010:5010'
depends_on:
postgres:
condition: service_healthy
math:
condition: service_started
frontend:
build: ./InnoPolis-frontend/inno-polis-frontend
ports:
- '3000:3000'
nginx:
build: ./nginx
ports:
- "80:80"
- "443:443"
depends_on:
- math
- polis-report
volumes:
postgres: {}