services: 
  db:
    image: 'postgres:16'
    environment:
      - 'POSTGRES_DB=clyde'
      - 'POSTGRES_USER=devel'
      - 'POSTGRES_PASSWORD=devel'
    # Uncomment this to allow connections to the db from outside the container
    # ports: 
    #   - '5442:5432'
  back:
    build: backend/.
    ports:
      - "8080:8080"
    volumes:
      - cdn:/backend/cdn
    ulimits:
      nofile:
        soft: 65536
        hard: 65536
  front:
    build: frontend/.
    volumes:
      - cdn:/app/front/dist/cdn
    ports:
      - "8000:8080"

volumes:
  cdn: