update to use registry

This commit is contained in:
spm
2026-10-30 10:53:20 +00:00
parent 1302dfa27d
commit 395a5f000a
+15 -18
View File
@@ -1,42 +1,39 @@
services:
backend:
build: ./backend
container_name: crypto-bot-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}
- CRYPTOPANIC_API_KEY=${CRYPTOPANIC_API_KEY}
- REDIS_URL=redis://redis:6379
volumes:
- ./data:/app/data
depends_on:
- redis
labels:
- "traefik.enable=true"
- "traefik.http.routers.crypto-api.rule=Host(`crypto-api.${DOMAIN}`)"
- "traefik.http.routers.crypto-api.entrypoints=websecure"
- "traefik.http.routers.crypto-api.tls=true"
- "traefik.http.services.crypto-api.loadbalancer.server.port=8000"
- "traefik.http.routers.crypto-api.middlewares=authentik@docker"
- "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:
build: ./frontend
container_name: crypto-bot-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.crypto-dash.rule=Host(`crypto.${DOMAIN}`)"
- "traefik.http.routers.crypto-dash.entrypoints=websecure"
- "traefik.http.routers.crypto-dash.tls=true"
- "traefik.http.services.crypto-dash.loadbalancer.server.port=80"
- "traefik.http.routers.crypto-dash.middlewares=authentik@docker"
- "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: crypto-bot-redis
container_name: trading-bot-redis
restart: unless-stopped
volumes:
- redis_data:/data