-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 984 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
nginx:
image: tutum/nginx
container_name: nginx
ports:
- "80:80"
links:
- phpfpm
volumes:
#- ./nginx/site.conf:/etc/nginx/conf.d/default.conf
- ./nginx/default:/etc/nginx/sites-available/default
- ./nginx/default:/etc/nginx/sites-enabled/default
- ./logs/nginx-error.log:/var/log/nginx/error.log
- ./logs/nginx-access.log:/var/log/nginx/access.log
phpfpm:
image: bitnami/php-fpm:7.0
container_name: php7
ports:
- "9000:9000"
volumes:
- ./www:/usr/share/nginx/html
mysql:
image: mariadb
container_name: mariadb
environment:
MYSQL_ROOT_PASSWORD: admin
ports:
- "3306:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpMyadmin
restart: always
links:
- mysql
ports:
- 8183:80
environment:
PMA_HOST: mysql
PMA_USER: root
PMA_PASSWORD: admin
PMA_ARBITRARY: 1