-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.ns-compose.yaml
53 lines (50 loc) · 1.26 KB
/
Dockerfile.ns-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
version: '1.0.0'
services:
ns-monitor:
image: ghcr.io/lnls-sirius/docker-machine-applications/ns-monitor:version100
command: bash -c 'python monitor.py'
volumes:
- type: bind
source: ./app/db
target: /opt/notification_service/db
- type: bind
source: ./log.txt
target: /opt/notification_service/log.txt
deploy:
placement:
constraints:
- node.hostname == fac6
replicas: 1
restart_policy:
condition: any
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "10m"
networks:
- ioc-network
ns-flask:
image: ghcr.io/lnls-sirius/docker-machine-applications/ns-flask:version100
# command: bash -c "gunicorn --bind 0.0.0.0:5000 'notificationservice:app'"
volumes:
- type: bind
source: ./app/db
target: /opt/notification_service/db
- type: bind
source: ./log.txt
target: /opt/notification_service/log.txt
deploy:
placement:
constraints:
- node.hostname == fac6
replicas: 1
restart_policy:
condition: any
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "10m"
networks:
- ioc-network