初始化项目文件
This commit is contained in:
89
build_file/prd/docker-compose.yml
Normal file
89
build_file/prd/docker-compose.yml
Normal file
@ -0,0 +1,89 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
api_iris:
|
||||
image: api_iris:1.0
|
||||
container_name: api_iris
|
||||
restart: always
|
||||
environment:
|
||||
- version=prd
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
"curl -sS 'http://127.0.0.1:8080/api' || kill 1"
|
||||
]
|
||||
interval: 5m
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
volumes:
|
||||
- "/data/share/static:/web/api_iris/static/"
|
||||
- "/data/share/upload:/web/api_iris/upload/"
|
||||
- "/data/share/upload-note:/web/api_iris/upload-note/"
|
||||
- "/data/share-video/upload-video:/web/api_iris/upload-video/"
|
||||
- "/data/share/log/backend-iris:/web/api_iris/logs/"
|
||||
- "/data/share/log/nginx-vue:/web/api_iris/logs/nginx"
|
||||
- "/etc/localtime:/etc/localtime"
|
||||
|
||||
api_file:
|
||||
image: api_file:1.0
|
||||
container_name: api_file
|
||||
restart: always
|
||||
environment:
|
||||
- version=prd
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
"curl -sS 'http://127.0.0.1:8081/api' || kill 1"
|
||||
]
|
||||
interval: 5m
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
volumes:
|
||||
- "/data/share/static:/web/api_file/static/"
|
||||
- "/data/share/upload:/web/api_file/upload/"
|
||||
- "/data/share/upload-note:/web/api_file/upload-note/"
|
||||
- "/data/share-video/upload-video:/web/api_file/upload-video/"
|
||||
- "/data/share/log/backend-iris:/web/api_file/logs/"
|
||||
- "/data/share/log/nginx-vue:/web/api_file/logs/nginx"
|
||||
- "/etc/localtime:/etc/localtime"
|
||||
|
||||
# api_django:
|
||||
# image: api_django:1.0
|
||||
# container_name: api_django
|
||||
# restart: always
|
||||
# command: /bin/bash -c "uwsgi --ini uwsgi.ini"
|
||||
# healthcheck:
|
||||
# test:
|
||||
# [
|
||||
# "CMD-SHELL",
|
||||
# "curl -sS 'http://127.0.0.1:8000/api' || kill 1"
|
||||
# ]
|
||||
# interval: 5m
|
||||
# timeout: 10s
|
||||
# retries: 3
|
||||
# volumes:
|
||||
# - "/data/share/log/backend-iris:/web/api_django/logs/"
|
||||
# - "/data/share/log/nginx-vue:/web/api_django/logs/nginx"
|
||||
# - "/data/share/log/backend-django:/var/log/uwsgi"
|
||||
# - "/etc/localtime:/etc/localtime"
|
||||
|
||||
web_vue:
|
||||
image: web_vue:1.0
|
||||
container_name: web_vue
|
||||
restart: always
|
||||
volumes:
|
||||
- "/root/build/git-ylsa0.cn.key:/etc/nginx/git-ylsa0.cn.key"
|
||||
- "/root/build/git-ylsa0.cn_bundle.crt:/etc/nginx/git-ylsa0.cn_bundle.crt"
|
||||
- "/data/share/static:/static/static/"
|
||||
- "/data/share/upload:/static/upload/"
|
||||
- "/data/share/upload-note:/static/upload-note/"
|
||||
- "/data/share-video/upload-video:/static/upload-video/"
|
||||
- "/data/share/log/nginx-vue:/var/log/nginx/"
|
||||
- "/etc/localtime:/etc/localtime"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
depends_on:
|
||||
- api_iris
|
Reference in New Issue
Block a user