-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·50 lines (48 loc) · 1.09 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
version: "3.4"
services:
db:
image: mongo:6.0.4
volumes:
- ./data/db:/data/db
#- ./data/dump:/dump
expose:
- "27017"
ports:
- "27017:27017"
broker:
image: redis
volumes:
- ./data/broker:/data
expose:
- "6379"
ports:
- "6379:6379"
udata:
build: .
#command: serve --reload
#environment:
# - FLASK_DEBUG=true
volumes:
- ./udata-fs:/udata/fs
- .:/src/gouvfr
- ./udata.cfg:/udata/udata.cfg
- ./logs:/logs
environment:
TZ: "Portugal"
network_mode: "host"
healthcheck:
test: >
bash -c "
if nc -z -v -w 3 127.0.0.1 7000; then
echo 'Connection successful';
exit 0;
else
echo 'Connection failed';
exit 1;
fi"
interval: 5s
timeout: 3s
retries: 3
start_period: 180s
#ports:
# - "7000:7000"