services:
  app:
    build: .
    ports:
      - "3000:3000"
    environment:
      - NODE_ENV=production
      - MONGODB_URI=mongodb://rendersee:ren&&GHtk18ssKLt@vps3.happyuser.info:27017/rendersee
    depends_on:
      - mongo
# Not sure actually about volumes. I need to be able to access to vps process.cwd() value
#    volumes:
#      - /var/www/vps3.happyuser.info:/app

  mongo:
    image: mongo:latest
    ports:
      - "27017:27017"
    volumes:
      - mongo-data:/data/db

volumes:
  mongo-data:
