-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1.05 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
version: '3.2'
networks:
alps:
driver: bridge
services:
nginx:
container_name: nginx
image: nginx:alpine
# build: ./containers/nginx
ports:
- 80:80
- 443:443
networks:
- alps
volumes:
- ./containers/nginx/conf.d:/etc/nginx/conf.d
- ./containers/nginx/include.d:/etc/nginx/include.d
- ./containers/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./home/DocumentRoot:/var/www/html
- ./var/log/nginx:/var/log/nginx
php:
container_name: php
build: ./containers/php
networks:
- alps
volumes:
- ./home/DocumentRoot:/var/www/html
php-xdebug:
container_name: php-xdebug
build: ./containers/php
ports:
- 9000:9000
networks:
- alps
volumes:
- ./home/DocumentRoot:/var/www/html
mysql:
container_name: mysql
image: mysql:latest
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
ports:
- 3306:3306
networks:
- alps
volumes:
- ./home/mysql:/var/lib/mysql
- ./var/log/mysql:/var/log/mysql