forked from tronbyt/server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.https.yaml
31 lines (31 loc) · 1.13 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
services:
web:
image: ghcr.io/tavdog/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=${SERVER_PORT}
- PIXLET_RENDER_PORT1=${PIXLET_SERVE_PORT1}
- SYSTEM_APPS_REPO=${SYSTEM_APPS_REPO}
- PRODUCTION=${PRODUCTION}
proxy:
image: caddy:latest
restart: unless-stopped
ports:
- "${SERVER_PORT}:8000" # Map port 8000 on the host to port 8000 in the container
- "${SERVER_PORT}:8000/udp"
- "${PIXLET_SERVE_PORT1}:${PIXLET_SERVE_PORT1}" # 5100 is used for pixlet serve interface during app configuration
- "${PIXLET_SERVE_PORT2}:${PIXLET_SERVE_PORT2}" # user 2, add 1 incremented port each additional user you want or use host network_mode
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./certs:/data
depends_on:
- web
volumes:
users:
webp: