-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.01 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
version: "3"
services:
php:
image: php:7.1-fpm-alpine
build: './.setup/php/'
networks:
- AMP
volumes:
- ./public_html/:/var/www/html/
apache:
image: httpd:2.4-alpine
build: './.setup/apache/'
depends_on:
- php
networks:
- AMP
ports:
- "8000:80"
volumes:
- ./public_html/:/var/www/html/
- ./.setup/apache/docker.apache.conf:/usr/local/apache2/conf.d/docker.apache.conf
- ./.setup/apache/logs/:/usr/local/apache2/logs
mysql:
image: mysql:5.6
volumes:
- ./.setup/mysql/data/:/var/lib/mysql/
networks:
- AMP
environment:
- MYSQL_ROOT_PASSWORD=docker
ports:
- "3307:3306"
# nginx:
# image: nginx:stable-alpine
# build: './.setup/nginx/'
# depends_on:
# - php
# ports:
# - "443:443"
# - "80:80"
# networks:
# - AMP
# volumes:
# - ./public_html/:/var/www/docker/
# - ./.setup/nginx/docker.conf:/etc/nginx/conf.d/default.conf
networks:
AMP: