diff --git a/docker-compose.yml b/docker-compose.yml index 8537f16..2bec76d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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