This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
version: '3.8'
|
||||
|
||||
# 应用服务
|
||||
services:
|
||||
# 后端服务
|
||||
tornado_elevue:
|
||||
image: tornado_elevue:latest
|
||||
container_name: tornado_elevue
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
restart: always
|
||||
ports:
|
||||
- "8041:8041"
|
||||
environment:
|
||||
- TORNADO_PORT=8041
|
||||
- TORNADO_ENV=production
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./uploads:/data/apps/uploads
|
||||
- ./logs:/data/apps/logs
|
||||
command: python app.py
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "500m"
|
||||
max-file: "10"
|
||||
Reference in New Issue
Block a user