-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 959 Bytes
/
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
services:
nginx:
image: ${COMPOSE_PROJECT_NAME}-nginx
build:
context: .
dockerfile: docker/nginx/Dockerfile
command: [nginx, '-g', 'daemon off;']
depends_on:
- php
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- "./:/var/${COMPOSE_PROJECT_NAME}"
ports:
- "${HOST_IP}:35080:80"
networks:
- spark-networks
php:
image: ${COMPOSE_PROJECT_NAME}-php
build:
context: .
dockerfile: docker/php/Dockerfile
tags:
- php-spark
user: "${USERID}:${GROUPID}"
volumes:
- "./log:/var/${COMPOSE_PROJECT_NAME}/log"
- $PWD:/var/${COMPOSE_PROJECT_NAME}
working_dir: /var/${COMPOSE_PROJECT_NAME}
networks:
- spark-networks
networks:
spark-networks:
name: "${COMPOSE_PROJECT_NAME}-network"
driver: bridge
enable_ipv6: true
ipam:
config:
- subnet: fdff:1:1::/112
gateway: fdff:1:1::1