2026-07-07 07:11:50 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
passwordless-auth:
|
|
|
|
|
build: .
|
|
|
|
|
container_name: quixzoom-passwordless
|
|
|
|
|
ports:
|
2026-07-07 09:05:21 +00:00
|
|
|
- "8082:8080"
|
2026-07-07 07:11:50 +00:00
|
|
|
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:
|
2026-07-08 19:56:03 +00:00
|
|
|
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')"]
|
2026-07-07 07:11:50 +00:00
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 10s
|
|
|
|
|
|
|
|
|
|
redis:
|
|
|
|
|
image: redis:7-alpine
|
|
|
|
|
container_name: quixzoom-auth-redis
|
2026-07-07 09:05:21 +00:00
|
|
|
# No exposed port - internal only
|
2026-07-07 07:11:50 +00:00
|
|
|
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:
|