优化工作流,添加app-icon

This commit is contained in:
Kevin
2026-03-23 10:25:51 +08:00
parent 584fb9ffe9
commit f8b3de6ff8
16 changed files with 209 additions and 42 deletions

4
api/Caddyfile Normal file
View File

@@ -0,0 +1,4 @@
{$CADDY_PRIMARY_DOMAIN:lifecho.worldsplats.com} {
encode zstd gzip
reverse_proxy api:8000
}

View File

@@ -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