forked from farwish/VocEdu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 1.14 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
version: '3'
services:
nginx:
image: nginx:${IMG_NGINX_VERSION}
container_name: nginx-con-voc
volumes:
- ./:${CONTAINER_WEB_AP}
- ${NGINX_DATA_DIR}:/var/log/nginx/
- ./docker/nginx/etc/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/etc/conf.d/default.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/etc/conf.d/blockips.conf:/etc/nginx/conf.d/blockips.conf
- ./docker/nginx/etc/conf.d/cookieips.conf:/etc/nginx/conf.d/cookieips.conf
ports:
- 8889:8889
depends_on:
- php
restart: on-failure
networks:
- default_net
php:
image: phvia/php:${IMG_PHP_VERSION}
# build:
# context: ./
# dockerfile: ./docker/php/Dockerfile-php
# args:
# IMG_PHP_VERSION: ${IMG_PHP_VERSION}
container_name: php-con-voc
volumes:
- ./:${CONTAINER_WEB_AP}
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
- ./docker/php/php-fpm.d/www.conf:/usr/local/etc/php-fpm.d/www.conf
ports:
- ${HOST_PHP_PORT}:9000
# depends_on:
# - mysql
restart: on-failure
networks:
- default_net
networks:
default_net:
driver: bridge