services:
  photon:
    container_name: photon_dashboard
    image: git.jrdn.dev/jordanwalster/photon-dashboard:latest
    volumes:
      - ./db:/var/www/html/db # Only required if migrating from SQLite
      - type: bind
        source: ${DATA_PATH}
        target: /var/www/html/data
        bind:
          propagation: rshared
    ports:
      - ${PHOTON_PORT:-8090}:80
    env_file:
      - .env
  worker:
    container_name: photon_worker
    image: git.jrdn.dev/jordanwalster/photon-worker:latest
    volumes:
      - ${DATA_PATH}:/var/www/html/data
    env_file:
      - .env
  db:
    container_name: photon_db
    image: mariadb
    volumes:
      - db:/var/lib/mysql
    env_file:
      - .env
volumes:
  db:
