version: '3.8'
services:
  redis:
    image: redis:7-alpine
    restart: unless-stopped
    volumes:
      - redis-data:/data

  proxy:
    build: ./proxy
    restart: unless-stopped
    environment:
      - TBM_SECRETWORD=${TBM_SECRETWORD}
      - TBM_AUTH_UID=${TBM_AUTH_UID}
      - CLIENT_API_KEY=${CLIENT_API_KEY}
      - REDIS_URL=redis://redis:6379
      - PORT=3000
    ports:
      - "3000:3000"
    depends_on:
      - redis

volumes:
  redis-data:
