forked from tharni/php7-dockerized
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (36 loc) · 744 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (36 loc) · 744 Bytes
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:
image: nginx
ports:
- "80: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_from:
- code
mysql:
image: mysql
ports:
- "33061:3306"
- "3306: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