-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 943 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
42
version: "3"
services:
webapp:
build: ./webapp
volumes:
- ./webapp:/var/www/
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- "3031:3031"
environment:
TZ: "Asia/Tokyo"
depends_on:
- executer
nginx:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- /tmp/nginx_log:/var/log/nginx # Output log to host
links:
- webapp
environment:
TZ: "Asia/Tokyo"
command: nginx -c /etc/nginx/nginx.conf
executer:
# only for build
build: ./executer
command: echo "shellgei executer already initialized"
https-portal:
image: steveltn/https-portal:1
ports:
- "80:80"
- "443:443"
links:
- nginx
environment:
STAGE: local
#STAGE: production
DOMAINS: 'localhost -> http://nginx:80'
#DOMAINS: 'shellgei-web.net -> http://nginx:80, www.shellgei-web.net -> http://nginx:80'