-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 1.08 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
version: "3"
services:
queue:
image: "mophos/queue"
container_name: "queue"
ports:
- 80:80
- 8888:8888
- 1883:1883
volumes:
- ./queue-config:/home/queue/queue-api/config
- ./mqtt-config:/home/queue/queue-mqtt/config
restart: always
networks:
queue-network:
ipv4_address: 192.168.88.11
mysql:
image: "mysql/mysql-server:8.0.13"
container_name: "queue-mysql"
ports:
- 3306:3306
environment:
MYSQL_DATABASE: "root"
MYSQL_ROOT_PASSWORD: "##q4u##"
MYSQL_ROOT_HOST: "%"
volumes:
- ./mysql:/var/lib/mysql
command:
--bind-address=0.0.0.0
--sql-mode="STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
--skip-name-resolve
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8
--collation-server=utf8_general_ci
restart: always
networks:
queue-network:
ipv4_address: 192.168.88.10
networks:
queue-network:
driver: bridge
ipam:
config:
- subnet: 192.168.88.0/24