forked from Map-A-Droid/MAD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yaml
34 lines (32 loc) · 995 Bytes
/
docker-compose-dev.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
version: "2.4"
services:
mad:
image: map-a-droid
build: .
# Use an empty entrypoint and mount local sources into container so that a simple
# `docker-compose run --service-ports python3 start.py` can be used to test current
# development in a defined environment.
# `docker-compose run bash` launch a shell inside the container.
entrypoint: ""
volumes:
- ./:/usr/src/app:rw
depends_on:
- mariadb
ports:
- "5000:5000"
- "8000:8000"
- "8080:8080"
environment:
THERAIDMAPPER_DBIP: mariadb
THERAIDMAPPER_DBUSERNAME: rocketdb
THERAIDMAPPER_DBNAME: rocketdb
THERAIDMAPPER_DBPASSWORD: rocketdb
THERAIDMAPPER_WITH_MADMIN: "true"
mariadb:
image: mariadb:10.3
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
environment:
MYSQL_DATABASE: rocketdb
MYSQL_USER: rocketdb
MYSQL_ROOT_PASSWORD: rocketdb
MYSQL_PASSWORD: rocketdb