-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
63 lines (58 loc) · 1.3 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
version: '3.3'
services:
php7fpm:
build: ./build/php-fpm
container_name: docker-php7fpm
working_dir: /usr/share/nginx/html
restart: always
environment:
- TERM=xterm
volumes:
- ./html:/usr/share/nginx/html
- ./config/php7.ini:/usr/local/etc/php/php.ini
links:
- mysql
ports:
- "9000:9000"
mysql:
image: mariadb:10.3.0
container_name: docker-mysql
restart: always
environment:
- TERM=xterm
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=db_example
volumes:
- ./db:/var/lib/mysql
ports:
- "3306:3306"
pma:
image: phpmyadmin/phpmyadmin:4.7.3-1
container_name: docker-phpmyadmin
restart: always
environment:
- TERM=xterm
environment:
- PMA_HOST=mysql
- PMA_PORT=3306
links:
- "mysql:db"
ports:
- "8080:80"
nginx:
image: nginx:1.12.1
container_name: docker-nginx
working_dir: /usr/share/nginx/html
restart: always
environment:
- TERM=xterm
volumes:
- ./html:/usr/share/nginx/html
- ./vhosts:/etc/nginx/conf.d/vhosts
- ./conf.d/nginx.conf:/etc/nginx/nginx.conf
- ./conf.d/default.conf:/etc/nginx/conf.d/default.conf
links:
- "php7fpm:phpfpm"
ports:
- "80:80"
- "443:443"