Files
boc/iom/quixzoom-auth-service/docker-compose.yml
T

45 lines
978 B
YAML
Raw Normal View History

version: '3.8'
services:
passwordless-auth:
build: .
container_name: quixzoom-passwordless
ports:
- "8082:8080"
environment:
- PORT=8080
- HOST=0.0.0.0
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_DB=0
- JWT_SECRET=${JWT_SECRET}
depends_on:
- redis
networks:
- quixzoom-auth
restart: unless-stopped
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
redis:
image: redis:7-alpine
container_name: quixzoom-auth-redis
# No exposed port - internal only
volumes:
- redis-data:/data
networks:
- quixzoom-auth
restart: unless-stopped
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
networks:
quixzoom-auth:
driver: bridge
volumes:
redis-data: