forked from tronbyt/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
27 lines (27 loc) · 812 Bytes
/
docker-compose.yaml
File metadata and controls
27 lines (27 loc) · 812 Bytes
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
services:
web:
image: ghcr.io/tronbyt/server:latest
restart: unless-stopped
ports:
- "${SERVER_PORT}:8000" # Map server port on the host to port 8000 in the container
user: "tronbyt:tronbyt"
init: true
volumes:
- "/etc/localtime:/etc/localtime:ro" # used to sync docker with host time
- users:/app/users
- data:/app/data
environment:
- SERVER_HOSTNAME=${SERVER_HOSTNAME_OR_IP:?SERVER_HOSTNAME_OR_IP MUST BE SET IN .env FILE !!!!!!!!!!!!!!!!!.}
- SERVER_PORT
- SYSTEM_APPS_REPO
- PRODUCTION
- ENABLE_USER_REGISTRATION
healthcheck:
test: ["CMD", "python3", "/app/healthcheck.py", "http://localhost:8000/health"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
users:
data: