-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·66 lines (64 loc) · 1.12 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3'
networks:
basic:
driver:
bridge
volumes:
db:
driver: local
services:
nginx:
networks:
- basic
build:
dockerfile: Dockerfile-nginx
context: .
ports:
- "8000:80"
volumes:
- .:/var/www/html
links:
- fpm
container_name: e_provost_nginx
fpm:
networks:
- basic
volumes:
- .:/var/www/html
ports:
- "9000:9000"
build:
context: .
dockerfile: Dockerfile-fpm
links:
- db
container_name: e_provost_fpm
db:
networks:
- basic
image: mysql:5.7.17
links:
- adminer
- myadmin
ports:
- "3306:3306"
# volumes:
# - "./data/mysql:/var/lib/mysql"
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: 123456
container_name: e_provost_db
adminer:
networks:
- basic
image: adminer
ports:
- 8080:8080
container_name: e_provost_adminer
myadmin:
networks:
- basic
image: phpmyadmin/phpmyadmin
ports:
- "8082:80"
container_name: e_provost_myadmin