-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
107 lines (107 loc) · 2.3 KB
/
docker-compose.yml
File metadata and controls
107 lines (107 loc) · 2.3 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: '3'
services:
redis:
image: redis
command: ["redis-server", "--appendonly", "yes"]
hostname: redis
sysctls:
net.core.somaxconn: 1024
# volumes:
# - redis-data:/data
ports:
- 127.0.0.1:6379:6379
networks:
- app
ingestion:
build: ./app/ingestion/
volumes:
- ./app/ingestion/:/var/www/ovassistant/app/ingestion
depends_on:
- redis
- postgis
env_file:
- ./app/ingestion/ingestion.env
ports:
- 127.0.0.1:8000:8000
networks:
- app
scoring:
build: ./app/scoring/
volumes:
- ./app/scoring/:/var/www/ovassistant/app/scoring
depends_on:
- redis
- postgis
- nearest
env_file:
- ./app/scoring/scoring.env
ports:
- 127.0.0.1:8001:8001
networks:
- app
postgis:
image: mdillon/postgis
volumes:
- postgis-data:/var/lib/postgresql
- ./app/postgis/initdb/:/docker-entrypoint-initdb.d
environment:
# If you need to create multiple database you can add coma separated databases eg gis,data
- POSTGRES_DB=gis
- POSTGRES_USER=docker
- POSTGRES_PASS=docker
ports:
- 127.0.0.1:5434:5432
restart: always
# healthcheck:
# test: "exit 0"
networks:
- app
nearest:
build: ./app/nearest/
depends_on:
- postgis
- redis
ports:
- 127.0.0.1:9002:9002
command: python calculate.py
volumes:
- ./app/nearest/:/usr/src/app
env_file:
- ./app/nearest/nearest.env
networks:
- app
datadog:
build: datadog
env_file:
- ./datadog/datadog.env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /proc/:/host/proc/:ro
- /sys/fs/cgroup:/host/sys/fs/cgroup:ro
- /sys/kernel/debug:/sys/kernel/debug
networks:
- app
security_opt:
- apparmor:unconfined
cap_add:
- SYS_ADMIN
- SYS_RESOURCE
- SYS_PTRACE
- NET_ADMIN
- IPC_LOCK
trajectories:
build: ./app/trajectories
env_file:
- ./app/trajectories/trajectories.env
depends_on:
- postgis
networks:
- app
volumes:
- ./app/trajectories/:/var/www/ovassistant/app/trajectories
volumes:
redis-data:
node_modules:
postgis-data:
networks:
app: