优化工作流,添加app-icon
This commit is contained in:
4
api/Caddyfile
Normal file
4
api/Caddyfile
Normal file
@@ -0,0 +1,4 @@
|
||||
{$CADDY_PRIMARY_DOMAIN:lifecho.worldsplats.com} {
|
||||
encode zstd gzip
|
||||
reverse_proxy api:8000
|
||||
}
|
||||
@@ -57,8 +57,8 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
image: life-echo-api:latest
|
||||
container_name: life-echo-api-prod
|
||||
ports:
|
||||
- "8000:8000"
|
||||
expose:
|
||||
- "8000"
|
||||
env_file:
|
||||
- .env.production
|
||||
environment:
|
||||
@@ -109,7 +109,7 @@ services:
|
||||
api:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "celery -A app.tasks.celery_app inspect ping --timeout 10 2>/dev/null | grep -q pong || exit 1"]
|
||||
test: ["CMD-SHELL", "uv run celery -A app.tasks.celery_app inspect ping --timeout 10 2>/dev/null | grep -q pong || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 15s
|
||||
retries: 3
|
||||
@@ -122,6 +122,28 @@ services:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
caddy:
|
||||
image: caddy:2-alpine
|
||||
container_name: life-echo-caddy
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
restart: always
|
||||
networks:
|
||||
- life-echo-network
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# Celery Beat(定时任务调度,可选)
|
||||
# celery-beat:
|
||||
# build:
|
||||
@@ -175,3 +197,7 @@ volumes:
|
||||
driver: local
|
||||
redis_data:
|
||||
driver: local
|
||||
caddy_data:
|
||||
driver: local
|
||||
caddy_config:
|
||||
driver: local
|
||||
|
||||
Reference in New Issue
Block a user