services: backend: image: registry.smulders.online/trading-bot-backend:latest container_name: trading-bot-backend restart: unless-stopped environment: - KRAKEN_API_KEY=${KRAKEN_API_KEY} - KRAKEN_SECRET=${KRAKEN_SECRET} - REDIS_URL=redis://redis:6379 depends_on: - redis labels: - "traefik.enable=true" - "traefik.http.routers.trading-api.rule=Host(`trading-api.smulders.online`)" - "traefik.http.routers.trading-api.entrypoints=websecure" - "traefik.http.routers.trading-api.tls=true" - "traefik.http.services.trading-api.loadbalancer.server.port=8000" - "traefik.http.routers.trading-api.middlewares=authentik@docker" frontend: image: registry.smulders.online/trading-bot-frontend:latest container_name: trading-bot-frontend restart: unless-stopped depends_on: - backend labels: - "traefik.enable=true" - "traefik.http.routers.trading-dash.rule=Host(`trading.smulders.online`)" - "traefik.http.routers.trading-dash.entrypoints=websecure" - "traefik.http.routers.trading-dash.tls=true" - "traefik.http.services.trading-dash.loadbalancer.server.port=80" - "traefik.http.routers.trading-dash.middlewares=authentik@docker" redis: image: redis:7-alpine container_name: trading-bot-redis restart: unless-stopped volumes: - redis_data:/data volumes: redis_data: networks: default: external: true name: traefik-proxy