version: '3.8'
services:
  db:
    image: postgres
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: k0fpEoFJetxkObPD
    ports:
      - '5432:5432'
  pgadmin:
    image: dpage/pgadmin4
    environment:
      PGADMIN_DEFAULT_EMAIL: team@golo.io
      PGADMIN_DEFAULT_PASSWORD: test123
    ports:
      - '8888:80'
  redis:
    image: redis:5
    ports: 
      - "6379:6379"
  # This service is used to help test locally how a production build would behave (what we have in staging and prod)
  # backend:
  #   image: node:14
  #   env_file: .env
  #   environment:
  #     NODE_ENV: production
  #     DATABASE_URL: postgresql://postgres:k0fpEoFJetxkObPD@db:5432/walter
  #     LOG_FORMAT: json
  #     LOG_LEVEL_IN_STRING: 'true'
  #   volumes:
  #     - .nexus/:/code
  #   ports:
  #     - '5000:80'
  #   command: ["node", "/code/build/api/index.js"]