-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
60 lines (58 loc) · 1.47 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
services:
postgres:
image: postgres:9.4.26-alpine
container_name: nl_logger_postgres
ports:
- 7654:5432
environment:
- PGUSER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
volumes:
- ./nl_logger_postgres_data:/var/lib/postgresql
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
nl_logger:
build: .
container_name: nl_logger
ports:
- "5001:5001"
volumes:
- ./config.json:/app/config.json
restart: always
entrypoint: ["gunicorn", "-w" , "4", "-b", "0.0.0.0:5001", "main:app"]
depends_on:
postgres:
condition: service_healthy
nl_label_printing:
build:
context: website/Nansen_Legacy_label_printing
dockerfile: Dockerfile
container_name: nl_label_printing
ports:
- "5002:5002"
environment:
- APP_ENV=production
entrypoint: ["gunicorn", "-w" , "4", "-b", "0.0.0.0:5002", "main:app"]
restart: always
depends_on:
- nl_logger
nl_template_generator:
build:
context: website/Nansen_Legacy_template_generator
dockerfile: Dockerfile
container_name: nl_template_generator
ports:
- "5000:5000"
entrypoint: ["gunicorn", "-w" , "4", "-b", "0.0.0.0:5000", "main:app"]
restart: always
depends_on:
- nl_logger
networks:
nansen_legacy_logging_system_default:
driver: bridge