# docker-compose -f docker-compose.dev.yml up --build

services:
  goapp:
    build:
      context: .
      dockerfile: Dockerfile.dev
    container_name: "sconsolution-go-dev"
    restart: unless-stopped    
    ports:
      - "5001:5001"
      - "2345:2345"     # delve debug port      
    env_file:
      - .env
    volumes:
      - .:/app
      - ./.env:/app/.env
    command: ["/go/bin/air"]
    environment:
      REDIS_HOST: redis
      REDIS_PORT: 6379
    depends_on:
      - redis
  redis:
    image: redis:latest
    container_name: "sconsolution-redis-dev"
    ports:
      - "6380:6379"
    volumes:
      - ./data/redis:/data      