forked from v02202/taicol-test
-
Notifications
You must be signed in to change notification settings - Fork 1
/
staging.yml
46 lines (42 loc) · 1.26 KB
/
staging.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
version: '3.7'
services:
web:
build: .
container_name: taicol-api-v1-container
image: taicol-api-v1-container
command: ./entry/docker-off-entry.sh
volumes:
- .:/code
- ./taicol-volumes/static:/code/mysite/mysite/static
ports:
- 8001:8001
tty: true
stdin_open: true
env_file:
- .env
# nginx:
# image: nginx:1.17.6-alpine
# restart: always
# ports:
# - 80:80
# - 443:443
# volumes:
# - ./taicol-api.conf:/etc/nginx/conf.d/taicol-api.conf
# - ./taicol-volumes/logs/nginx:/var/log/nginx
# - ./taicol-volumes/static:/code/mysite/mysite/static
# - ./taicol-volumes/certbot/conf:/etc/letsencrypt
# - ./taicol-volumes/certbot/www:/var/www/certbot
# links:
# - web:web
# logging:
# driver: "json-file"
# options:
# max-size: "1m"
# max-file: "3"
# command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
# certbot:
# image: certbot/certbot
# volumes:
# - ./taicol-volumes/certbot/conf:/etc/letsencrypt
# - ./taicol-volumes/certbot/www:/var/www/certbot
# entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"