-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
67 lines (60 loc) · 1.33 KB
/
docker-compose.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
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
version: '3.9'
services:
# nginx:
# build:
# context: .
# dockerfile: ./.docker/nginx/Dockerfile
# container_name: nginx
# restart: unless-stopped
# ports:
# - "83:80"
# volumes:
# - .:/var/www
# - ./.docker/nginx/config/default.conf:/etc/nginx/conf.d/default.conf
# - ./.docker/nginx/logs/:/var/log/nginx
# depends_on:
# - php
# networks:
# - nginx
db:
build:
context: .
dockerfile: ./.docker/db/mysql_8.0/Dockerfile
container_name: db
restart: unless-stopped
ports:
- "3306:3306"
volumes:
- ./.docker/db/mysql_8.0/data:/var/lib/mysql
- .:/var/www
environment:
- MYSQL_HOST=127.0.0.1
- MYSQL_PORT=3306
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=shop
command: --default-authentication-plugin=mysql_native_password --net_buffer_length=1000000 --max_allowed_packet=1000000000
networks:
- apache
- nginx
- web-phpmyadmin
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: pma
restart: unless-stopped
environment:
- PMA_ARBITRARY=1
ports:
- "8001:80"
links:
- db:db
depends_on:
- db
networks:
- web-phpmyadmin
networks:
apache:
driver: bridge
nginx:
driver: bridge
web-phpmyadmin:
driver: bridge