-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.75 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
services:
firefly:
# Use pre-built image by default, override with 'build: .' for development
# image: ${FIREFLY_IMAGE:-ghcr.io/pdxlocations/firefly:latest}
# Uncomment the following line for local development:
build: .
container_name: firefly-app
# NETWORKING OPTIONS:
# Default: host networking for direct UDP multicast access on the host network stack.
network_mode: host
# If you need bridge mode instead, comment out `network_mode: host`, then uncomment:
# ports:
# - "${FIREFLY_WEB_PORT:-5011}:${FIREFLY_PORT:-5011}"
# - "${FIREFLY_UDP_PORT:-4403}:${FIREFLY_UDP_PORT:-4403}/udp"
# networks:
# - firefly-network
environment:
- FIREFLY_HOST=${FIREFLY_HOST:-0.0.0.0}
- FIREFLY_PORT=${FIREFLY_PORT:-5011}
- FIREFLY_WEB_PORT=${FIREFLY_WEB_PORT:-5011}
- FIREFLY_DATABASE_FILE=${FIREFLY_DATABASE_FILE:-/app/data/mudpchat.db}
- FIREFLY_SECRET_KEY=${FIREFLY_SECRET_KEY:-dev-secret-key-change-in-production}
- FIREFLY_DEBUG=${FIREFLY_DEBUG:-false}
- FIREFLY_UDP_PORT=${FIREFLY_UDP_PORT:-4403}
# Keep this in sync with the networking option above so startup logs show the right URL.
- NETWORK_MODE=host
# - NETWORK_MODE=bridge
volumes:
- firefly_data:/app/data
# Optional: mount your own config or profiles (uncomment if you have them)
# - ./profiles:/app/profiles:ro
# - ./config.yaml:/app/config.yaml:ro
restart: unless-stopped
# Healthcheck to ensure service is running
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5011/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
firefly-network:
driver: bridge
volumes:
firefly_data:
driver: local