update to use registry
This commit is contained in:
+15
-18
@@ -1,42 +1,39 @@
|
|||||||
services:
|
services:
|
||||||
backend:
|
backend:
|
||||||
build: ./backend
|
image: registry.smulders.online/trading-bot-backend:latest
|
||||||
container_name: crypto-bot-backend
|
container_name: trading-bot-backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- KRAKEN_API_KEY=${KRAKEN_API_KEY}
|
- KRAKEN_API_KEY=${KRAKEN_API_KEY}
|
||||||
- KRAKEN_SECRET=${KRAKEN_SECRET}
|
- KRAKEN_SECRET=${KRAKEN_SECRET}
|
||||||
- CRYPTOPANIC_API_KEY=${CRYPTOPANIC_API_KEY}
|
|
||||||
- REDIS_URL=redis://redis:6379
|
- REDIS_URL=redis://redis:6379
|
||||||
volumes:
|
|
||||||
- ./data:/app/data
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.crypto-api.rule=Host(`crypto-api.${DOMAIN}`)"
|
- "traefik.http.routers.trading-api.rule=Host(`trading-api.smulders.online`)"
|
||||||
- "traefik.http.routers.crypto-api.entrypoints=websecure"
|
- "traefik.http.routers.trading-api.entrypoints=websecure"
|
||||||
- "traefik.http.routers.crypto-api.tls=true"
|
- "traefik.http.routers.trading-api.tls=true"
|
||||||
- "traefik.http.services.crypto-api.loadbalancer.server.port=8000"
|
- "traefik.http.services.trading-api.loadbalancer.server.port=8000"
|
||||||
- "traefik.http.routers.crypto-api.middlewares=authentik@docker"
|
- "traefik.http.routers.trading-api.middlewares=authentik@docker"
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
build: ./frontend
|
image: registry.smulders.online/trading-bot-frontend:latest
|
||||||
container_name: crypto-bot-frontend
|
container_name: trading-bot-frontend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.crypto-dash.rule=Host(`crypto.${DOMAIN}`)"
|
- "traefik.http.routers.trading-dash.rule=Host(`trading.smulders.online`)"
|
||||||
- "traefik.http.routers.crypto-dash.entrypoints=websecure"
|
- "traefik.http.routers.trading-dash.entrypoints=websecure"
|
||||||
- "traefik.http.routers.crypto-dash.tls=true"
|
- "traefik.http.routers.trading-dash.tls=true"
|
||||||
- "traefik.http.services.crypto-dash.loadbalancer.server.port=80"
|
- "traefik.http.services.trading-dash.loadbalancer.server.port=80"
|
||||||
- "traefik.http.routers.crypto-dash.middlewares=authentik@docker"
|
- "traefik.http.routers.trading-dash.middlewares=authentik@docker"
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
container_name: crypto-bot-redis
|
container_name: trading-bot-redis
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- redis_data:/data
|
- redis_data:/data
|
||||||
|
|||||||
Reference in New Issue
Block a user