-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (59 loc) · 1.73 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
56
57
58
59
60
61
62
services:
php:
image: ladit/php:${PHP_VERSION}-fpm
# build:
# context: ./php
# args:
# - PHP_VERSION=${PHP_VERSION}
# - http_proxy
# - https_proxy
# - no_proxy
volumes:
- ./php/php.ini:/usr/local/etc/php/php.ini
- ./php/fpm.conf:/usr/local/etc/php-fpm.d/zz-fpm.conf
- ./php/opcache.ini:/usr/local/etc/php/conf.d/opcache.ini
- ./php/web.ini:/usr/local/etc/php/conf.d/web.ini
- ./php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ${DATA_BASE_HOST}/xdebug:/var/local/xdebug
- ${CODE_BASE_HOST}:${CODE_BASE_CONTAINER}
environment:
- TZ=Asia/Shanghai
- PHP_IDE_CONFIG=serverName=docker
nginx:
image: ladit/nginx
# build:
# context: ./nginx
# args:
# - http_proxy
# - https_proxy
# - no_proxy
volumes:
- ./nginx/40-crond.sh:/docker-entrypoint.d/40-crond.sh
- ./nginx/logrotate:/etc/logrotate.d/nginx
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/sites:/etc/nginx/conf.d
- ./log/nginx:/var/log/nginx
- ${CODE_BASE_HOST}:${CODE_BASE_CONTAINER}
environment:
- TZ=Asia/Shanghai
ports:
- "80:80"
- "443:443"
depends_on:
- php
# mysql:
# build:
# context: ./mysql
# args:
# - MYSQL_VERSION=${MYSQL_VERSION}
# environment:
# - TZ=Asia/Shanghai
# - MYSQL_DATABASE=${MYSQL_DATABASE}
# - MYSQL_USER=${MYSQL_USER}
# - MYSQL_PASSWORD=${MYSQL_PASSWORD}
# - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
# volumes:
# - ${DATA_BASE_HOST}/mysql:/var/lib/mysql
# - ./mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
# ports:
# - "${MYSQL_PORT}:3306"