-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dokploy.yml
More file actions
62 lines (60 loc) · 2.28 KB
/
Copy pathdocker-compose.dokploy.yml
File metadata and controls
62 lines (60 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
services:
backend:
build: ./backend
restart: unless-stopped
networks:
- dokploy-network
environment:
S3_ENDPOINT: ${S3_ENDPOINT:-http://host.docker.internal:9000}
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
S3_BUCKET: ${S3_BUCKET:-satisfactory-tracker}
ASSETS_BUCKET: ${ASSETS_BUCKET:-satisfactory-assets}
ASSETS_BASE_URL: ${ASSETS_BASE_URL:-https://s3.cevdetbaran.com/satisfactory-assets}
CORS_ORIGINS: ${CORS_ORIGINS:-https://sap.cevdetbaran.com}
SECRET_KEY: ${SECRET_KEY}
REQUIRE_WRITE_TOKEN: ${REQUIRE_WRITE_TOKEN:-false}
MAX_BODY_BYTES: ${MAX_BODY_BYTES:-262144}
SILENCE_HEALTH_LOGS: ${SILENCE_HEALTH_LOGS:-true}
healthcheck:
test:
- CMD
- python
- -c
- import urllib.request; urllib.request.urlopen('http://localhost:8000/health')
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
networks:
- dokploy-network
depends_on:
backend:
condition: service_healthy
labels:
- traefik.enable=true
- traefik.docker.network=dokploy-network
# HTTP router: serve the SPA directly. Cloudflare's "Always Use
# HTTPS" page rule enforces HTTPS at the edge — adding a Traefik
# redirectScheme here would loop because Cloudflare proxy hits
# origin on port 80 (Flexible SSL between edge and origin).
- traefik.http.routers.sap-web.rule=Host(`sap.cevdetbaran.com`)
- traefik.http.routers.sap-web.entrypoints=web
- traefik.http.routers.sap-web.service=sap-svc
# HTTPS router: also terminate TLS at origin via Let's Encrypt so
# CF can talk to us in Full (strict) mode if the user upgrades the
# SSL setting later. Same backend service.
- traefik.http.routers.sap-secure.rule=Host(`sap.cevdetbaran.com`)
- traefik.http.routers.sap-secure.entrypoints=websecure
- traefik.http.routers.sap-secure.tls=true
- traefik.http.routers.sap-secure.tls.certresolver=letsencrypt
- traefik.http.routers.sap-secure.service=sap-svc
- traefik.http.services.sap-svc.loadbalancer.server.port=80
networks:
dokploy-network:
external: true