-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
42 lines (40 loc) · 972 Bytes
/
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
version: '2'
services:
web_db:
image: mariadb:latest
container_name: mariadb
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- mysql:/var/lib/mysql
web:
image: nginx:mainline
container_name: nginx
restart: always
ports:
- 80:80
volumes:
- ./www:/var/www/html:rw
- ./conf/nginx.conf:/etc/nginx/nginx.conf:ro
- ./logs/nginx:/var/log/nginx:rw
- ./run/:/run/
web_fpm:
build: .
container_name: php_fpm
depends_on:
- web_db
volumes:
- ./www:/var/www/html
- ./run/:/run/:rw
web_phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
depends_on:
- web_fpm
- web_db
ports:
- 8181:80
environment:
- PMA_HOST=web_db
volumes:
mysql: