-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.1 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
version: "3.8"
services:
nginx:
image: nginx:1.18.0
container_name: nginx
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf.d/:/etc/nginx/conf.d/
extra_hosts:
- "host.docker.internal:host-gateway"
mosquitto:
image: eclipse-mosquitto:2.0.11
container_name: mosquitto
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto/config/:/mosquitto/config/
- ./mosquitto/data/:/mosquitto/data/
- ./mosquitto/log/:/mosquitto/log/
mysql:
image: mysql:8.0-debian
container_name: database
environment:
TZ: "Asia/Taipei"
# - MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_ROOT_PASSWORD: "12345678"
MYSQL_DATABASE: automeow
volumes:
- ./database/mysql/:/var/lib/mysql/
- ./database/init/:/docker-entrypoint-initdb.d/
ports:
- 3306:3306
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
depends_on:
- mysql
environment:
TZ: "Asia/Taipei"
PMA_HOST: database
PMA_PORT: 3306
ports:
- "9080:80"