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

services:
  goapp:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: "sconsolution-go-prod"
    restart: "always"
    image: kuberepo01.11infotech.com/constructsys-goapp:1.1
    # image: constructsys-goapp:1.1
    ports:
      - "5001:5001"
    env_file:
      - .env
    volumes:
      - ./.env:/app/.env
    environment:
      REDIS_HOST: redis
      REDIS_PORT: 6379
    depends_on:
      - redis
  redis:
    image: redis:latest
    container_name: "sconsolution-redis-prod"
    restart: always
    ports:
      - "127.0.0.1:6380:6379"
    volumes:
      - ./data/redis:/data
