add compose logic
All checks were successful
Code quality checks / biome (push) Successful in 7s

This commit is contained in:
creations 2025-06-09 18:12:48 -04:00
parent 2f9b38ace8
commit 3aca639660
Signed by: creations
GPG key ID: 8F553AA4320FC711
5 changed files with 125 additions and 1 deletions

32
compose.yml Normal file
View file

@ -0,0 +1,32 @@
services:
badge-api:
container_name: badge-api
pull_policy: build
build:
context: .
restart: unless-stopped
ports:
- "${PORT:-8080}:${PORT:-8080}"
env_file:
- .env
environment:
- REDIS_URL=redis://dragonfly:6379
depends_on:
dragonfly:
condition: service_started
networks:
- badge-api-network
dragonfly:
image: docker.dragonflydb.io/dragonflydb/dragonfly
restart: unless-stopped
ulimits:
memlock: -1
volumes:
- ./dragonfly-data:/data
networks:
- badge-api-network
networks:
badge-api-network:
driver: bridge