services:
  afis:
    build: .
    restart: unless-stopped
    env_file: .env
    ports: ["8090:80"]
    depends_on: [db]
    volumes: ["./logs:/var/www/html/logs"]
  db:
    image: mariadb:11.4
    restart: unless-stopped
    environment:
      MARIADB_DATABASE: nscdc_afis
      MARIADB_USER: nscdc_afis
      MARIADB_PASSWORD: change-this-database-password
      MARIADB_ROOT_PASSWORD: change-this-root-password
    volumes: ["afis_db:/var/lib/mysql"]
volumes: {afis_db: {}}
