forked from shiguanghuxian/docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 904 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 904 Bytes
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
version: '3'
services:
# composerphp:
# image: "composer"
# volumes:
# - "./www:/app"
# command: install
grpcphp:
build: .
container_name: "grpc_php7"
ports:
- "9000:9000"
volumes:
- ./www:/var/www/html
# - "./etc/php/php.ini:/etc/php/7.2/fpm/conf.d/php.ini"
web:
image: nginx:alpine
container_name: "nginx_php7"
volumes:
- "./etc/nginx/default.conf:/etc/nginx/conf.d/default.conf"
- "./etc/ssl:/etc/ssl"
- "./www:/var/www/html"
- "./etc/nginx/default.template.conf:/etc/nginx/conf.d/default.template"
ports:
- "8090:80"
- "8443:443"
environment:
- NGINX_HOST=localhost
command: /bin/sh -c "envsubst '$$NGINX_HOST' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
depends_on:
- grpcphp