forked from aml007/php7-dockerized
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (48 loc) · 1 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
version: '2'
services:
web:
image: nginx
ports:
- "8080:80"
- "443:443"
links:
- php
- mysql
volumes:
- ./sites:/etc/nginx/conf.d
- ./conf/nginx.conf:/etc/nginx/nginx.conf
volumes_from:
- code
php:
build: .
working_dir: /var/www
volumes:
- ./conf/php.ini:/usr/local/etc/php/conf.d/40-custom.ini
volumes_from:
- code
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: mysql
PMA_USER: root
PMA_PASSWORD: password
ports:
- 8888:80
volumes:
- /sessions
mysql:
image: mysql
# ports:
# - "33061:3306"
# - "33062:3306"
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: password
code:
image: busybox
volumes:
- ./www:/var/www
# COPY conf/my.cnf /etc/mysql/my.cnf
# - ./conf/php.ini:/etc/php/7.1/fpm/conf.d/40-custom.ini
# command: /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf