services:
  app:
    build: .
    restart: unless-stopped
    env_file: ./.env
    depends_on:
      - db
    ports:
      - 8313:80
    volumes:
      - "./src/:/var/www/html/:ro"
  db:
    image: postgres
    restart: unless-stopped
    env_file: ./.env
    ports:
      - 5432:5432
    volumes:
      - ./data/db:/var/lib/postgresql/data