version: '3'

services:
  express:
    container_name: soundbirder_express
    build:
      context: .
      dockerfile: ./docker/express/Dockerfile
    environment:
      - NODE_ENV=production
      - REDIS_HOST=${REDIS_HOST:-soundbirder_redis}
      - REDIS_PORT=${REDIS_PORT:-6379}
      - DEBUG=${DEBUG:-""}
    ports:
      - "${EXPRESS_PORT:-3000}:3000"
    restart: unless-stopped
    networks:
      - soundbirder_network
    depends_on:
      - redis
  
  redis:
    container_name: soundbirder_redis
    image: redis
    networks:
      - soundbirder_network

networks:
  soundbirder_network:
    driver: bridge