forked from KIOS-Research/AIDERS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
65 lines (59 loc) · 2 KB
/
docker-compose.dev.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
version: '3.7'
services:
web:
container_name: web
image: alexpips/aiders-web:1.4.2
#command: python manage.py runserver 0.0.0.0:8000
command: 'tail -f /dev/null'
init: true # To be able to kill docker from inside. Reference: https://stackoverflow.com/a/31539425
#command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
# restart: unless-stopped
volumes:
- /dev/:/dev/ #So docker can access USB devices (i.e Weather station etc.)
- ./aidersplatform/:/usr/src/aidersplatform/
- /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
- /tmp/.X11-unix:/tmp/.X11-unix:rw
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
#build: nginx
network_mode: 'host'
volumes:
mysql-data:
driver: local