-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (30 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (30 loc) · 1.03 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
services:
sentinel-tickets:
# Pre-built image from GitHub Container Registry (recommended)
# To build locally from source instead, replace the image line with: build: .
image: ghcr.io/ralphkb/sentinel-tickets:latest
container_name: sentinel-tickets
restart: unless-stopped
# Load env variables from the local .env file
env_file:
- .env
# Mount configuration files and databases
# IMPORTANT: Ensure config.yml, locale.yml, logs.txt, and .env exist on your host machine before starting!
volumes:
- ./config.yml:/app/config.yml
- ./locale.yml:/app/locale.yml
- ./data:/app/data
- ./logs.txt:/app/logs.txt
# Limit log file growth on the host Docker daemon
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Basic liveness check, confirms the Node.js process is responsive
healthcheck:
test: ["CMD", "node", "-e", "process.exit(0)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s