21 lines
646 B
YAML
21 lines
646 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
context: ..
|
|
dockerfile: deploy/Dockerfile.backend
|
|
ports:
|
|
- "8001:8000"
|
|
environment:
|
|
- DATABASE_URL=${DATABASE_URL:-mysql+pymysql://scrm_reader:ScrmReader2024Pass@47.107.71.55:3306/new_qiqi}
|
|
- API_KEY=${API_KEY:-platform_api_key_2026}
|
|
- JWT_SECRET=${JWT_SECRET:-platform_jwt_secret_2026}
|
|
- CONFIG_ENCRYPT_KEY=${CONFIG_ENCRYPT_KEY:-platform_config_key_32bytes!!}
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|