Add Docker Compose deployment support

This commit is contained in:
youbin
2026-03-21 21:18:51 +08:00
parent 8d715a3a15
commit ddb1b46c13
5 changed files with 125 additions and 1 deletions

28
docker-compose.yml Normal file
View File

@@ -0,0 +1,28 @@
services:
office365manage:
container_name: office365manage
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
environment:
HOST: 0.0.0.0
PORT: 8000
ports:
- "8000:8000"
volumes:
- ./logs:/app/logs
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/health', timeout=5)"
]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s