This commit is contained in:
2025-11-01 17:46:50 +08:00
parent f41af59f4b
commit 27196c00d8
6 changed files with 636 additions and 0 deletions

30
docker-compose.yml Normal file
View File

@@ -0,0 +1,30 @@
version: '3.8'
services:
# 前端服务
digital-archive-frontend:
build:
context: .
dockerfile: Dockerfile
container_name: digital-archive-frontend
ports:
- "80:80"
networks:
- proxy
restart: unless-stopped
environment:
- NGINX_HOST=localhost
- NGINX_PORT=80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/nginx/ssl:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
proxy:
external: true