Files
redlight/compose.yml
Michelle e43e7f5fc5
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m7s
Build & Push Docker Image / build (release) Successful in 6m14s
fix: update license information to GNU GPL v3 in README, package.json, and package-lock.json
fix: Add valkey to compose in case system is too old for DragonflyDB
2026-03-13 12:11:32 +01:00

76 lines
1.5 KiB
YAML

services:
redlight:
image: git.scrunkly.cat/michelle/redlight:latest
restart: unless-stopped
ports:
- "3001:3001"
env_file: ".env"
volumes:
- ./uploads:/app/uploads
- ./keys:/app/keys
depends_on:
postgres:
condition: service_healthy
dragonfly:
condition: service_healthy
networks:
- frontend
- backend
postgres:
image: postgres:17-alpine
restart: unless-stopped
env_file: ".env"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U redlight"]
interval: 5s
timeout: 5s
retries: 5
networks:
- backend
dragonfly:
image: ghcr.io/dragonflydb/dragonfly:latest
restart: unless-stopped
ulimits:
memlock: -1
volumes:
- dragonflydata:/data
healthcheck:
test: ["CMD", "redis-cli", "-p", "6379", "ping"]
interval: 5s
timeout: 5s
retries: 5
networks:
- backend
# Use valkey, if your system is too old for DragonflyDB
# valkey:
# image: valkey/valkey:9
# restart: unless-stopped
# ulimits:
# memlock: -1
# volumes:
# - valkeydata:/data
# healthcheck:
# test: ["CMD", "redis-cli", "-p", "6379", "ping"]
# interval: 5s
# timeout: 5s
# retries: 5
# networks:
# - backend
volumes:
pgdata:
dragonflydata:
#valkeydata:
networks:
frontend:
driver: bridge
backend:
driver: bridge
internal: true