-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
55 lines (51 loc) · 1.34 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
# Docker-compose file used for creating development database instances
services:
# Development MQTT server.
mqtt-broker:
stdin_open: true
tty: true
image: eclipse-mosquitto:latest
restart: unless-stopped
user: mosquitto
volumes:
- "./docker/mosquitto_config:/mosquitto/config"
- "./docker/mosquitto_data:/mosquitto/data"
ports:
- 1883:1883
- 9001:9001
# App database for development
smarthome-mariadb:
image: mariadb
container_name: smarthome-mariadb-dev
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=password
- MARIADB_ROOT_PASSWORD=password
- TZ=Europe/Berlin
- MYSQL_DATABASE=smarthome
- MYSQL_USER=smarthome
- MYSQL_PASSWORD=password
ports:
- 3313:3306
volumes:
- /etc/localtime:/etc/localtime:ro
- smarthome-data:/var/lib/mysql
# Testing database for ci/cd
testing-smarthome-mariadb:
image: mariadb
container_name: smarthome-mariadb-testing
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=testing
- MARIADB_ROOT_PASSWORD=testing
- TZ=Europe/Berlin
- MYSQL_DATABASE=smarthome
- MYSQL_USER=smarthome
- MYSQL_PASSWORD=testing
ports:
- 3330:3306
volumes:
- testing-data:/var/lib/mysql
volumes:
testing-data:
smarthome-data: