61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
api_iris:
|
|
image: api_iris:1.0
|
|
container_name: api_iris
|
|
restart: always
|
|
environment:
|
|
- version=dev
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD-SHELL",
|
|
"curl -sS 'http://127.0.0.1:8080/api' || kill 1"
|
|
]
|
|
interval: 5m
|
|
timeout: 10s
|
|
retries: 3
|
|
volumes:
|
|
- "/mnt/static:/web/api_iris/static/"
|
|
- "/mnt/upload:/web/api_iris/upload/"
|
|
- "/mnt/upload-note:/web/api_iris/upload-note/"
|
|
- "/mnt/upload-video:/web/api_iris/upload-video/"
|
|
- "/mnt/log/api_iris:/web/api_iris/logs/"
|
|
- "/mnt/log/nginx_vue:/web/api_iris/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:
|
|
- "/etc/localtime:/etc/localtime"
|
|
|
|
web_ylsa:
|
|
image: web_ylsa:1.0
|
|
container_name: web_ylsa
|
|
restart: always
|
|
volumes:
|
|
- "/mnt/static:/data/static/"
|
|
- "/mnt/upload:/data/upload/"
|
|
- "/mnt/upload-note:/data/upload-note/"
|
|
- "/mnt/upload-video:/data/upload-video/"
|
|
- "/mnt/log/nginx-vue:/var/log/nginx/"
|
|
- "/etc/localtime:/etc/localtime"
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- api_iris
|
|
- api_django
|