-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.https.yaml
38 lines (38 loc) · 1.06 KB
/
docker-compose.https.yaml
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
services:
web:
image: ghcr.io/tronbyt/server:latest
restart: unless-stopped
volumes:
- "/etc/localtime:/etc/localtime:ro" # used to sync docker with host time
- users:/app/users
- webp:/app/tronbyt_server/webp
environment:
- SERVER_PROTOCOL=https
- SERVER_HOSTNAME=${SERVER_HOSTNAME_OR_IP:?SERVER_HOSTNAME_OR_IP MUST BE SET IN .env FILE !!!!!!!!!!!!!!!!!.}
- SERVER_PORT
- PIXLET_RENDER_PORT1=${PIXLET_SERVE_PORT1}
- SYSTEM_APPS_REPO
- PRODUCTION
healthcheck:
test: ["CMD", "python3", "/app/healthcheck.py", "http://localhost:8000/health"]
interval: 1m30s
timeout: 10s
retries: 3
proxy:
image: caddy:latest
restart: unless-stopped
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
- "${SERVER_PORT}:${SERVER_PORT}/udp"
- "80:80" # Always open 80/443 for the HTTP-01 challenge
- "443:443"
environment:
- SERVER_PORT
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./certs:/data
depends_on:
- web
volumes:
users:
webp: