forked from KIOS-Research/AIDERS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (70 loc) · 2.35 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3.7'
services:
web:
container_name: web
image: alexpips/aiders-web:1.4.3
build: ./aidersplatform
command: python manage.py runserver ${NET_IP}:8000
init: true # To be able to kill docker from inside. Reference: https://stackoverflow.com/a/31539425
volumes:
- /dev/:/dev/ #So docker can access USB devices (i.e Weather station etc.) #Production
#- ./aidersplatform/:/usr/src/aidersplatform/:rw #Development
#- /usr/src/aidersplatform/django_api/logic/djiswarmcatkinws/ #This is to exclude this folder from being mapped into the docker. Reference https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder #Development
- /tmp/.X11-unix:/tmp/.X11-unix:rw #Production
- ./aidersplatform/django_api/aiders/media:/usr/src/aidersplatform/django_api/aiders/media:rw #Production
device_cgroup_rules:
- 'c 188:* rmw'
network_mode: 'host'
env_file:
- ./.env
logging:
driver: 'json-file'
options:
max-size: '15m'
max-file: '5'
deploy:
resources:
limits:
memory: 2000M
reservations:
memory: 20M
depends_on:
- db
db:
container_name: db
image: mysql:8.0
restart: unless-stopped
environment:
MYSQL_USER: test_user
MYSQL_PASSWORD: test_password
MYSQL_ROOT_PASSWORD: test_password
MYSQL_DATABASE: testdb
network_mode: 'host'
volumes:
- mysql-data:/var/lib/mysql
- ./init:/docker-entrypoint-initdb.d
odm:
container_name: odm
image: opendronemap/nodeodm
ports:
- '4000:3000'
nginx:
image: georgesofro/kios:nginx_25Aug
container_name: nginx
network_mode: 'host'
geoserver:
image: overv/openstreetmap-tile-server:2.2.0
container_name: geoserver
command:
- run
ports:
- '8081:80'
environment:
ALLOW_CORS: enabled
volumes:
- './osm-data:/data/database/'
- 'osm-tiles:/data/tiles/'
volumes:
mysql-data:
driver: local
osm-tiles: