services: photoview: image: viktorstrate/photoview:2 hostname: photoview container_name: photoview ports: - "8009:1808" depends_on: mariadb: environment: PHOTOVIEW_DATABASE_DRIVER: mysql ## Comment out the next variable in the case PHOTOVIEW_DATABASE_DRIVER is set to `sqlite` or `postgres` in the .env PHOTOVIEW_MYSQL_URL: "photoview:<< your random db password here >>@tcp(photoview-mariadb)/photoview" PHOTOVIEW_LISTEN_IP: "photoview" MAPBOX_TOKEN: "<< generate MapBox Token and put it here >>" PHOTOVIEW_LISTEN_PORT: 1808 volumes: - "/etc/localtime:/etc/localtime:ro" - "/etc/timezone:/etc/timezone:ro" - "/data/daemons/photoview/storage:/home/photoview/media-cache" - "/data/Photos:/photos:ro" # here put your photos path! networks: - photoview-net mariadb: networks: - photoview-net image: mariadb:lts hostname: photoview-mariadb container_name: photoview-mariadb restart: unless-stopped stop_grace_period: 5s command: mariadbd --innodb-buffer-pool-size=512M --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120 security_opt: ## see https://github.com/MariaDB/mariadb-docker/issues/434#issuecomment-1136151239 - seccomp:unconfined - apparmor:unconfined environment: MARIADB_AUTO_UPGRADE: "1" MARIADB_DATABASE: photoview MARIADB_USER: photoview MARIADB_PASSWORD: << your random db password here >> MARIADB_ROOT_PASSWORD: << another random password here >> volumes: - "/etc/localtime:/etc/localtime:ro" ## use local time from host - "/etc/timezone:/etc/timezone:ro" ## use timezone from host - "/data/daemons/photoview/database/mariadb:/var/lib/mysql" ## DO NOT REMOVE networks: photoview-net: {}