version: "3" services: db: image: mariadb restart: always env_file: - db.env volumes: - db_data:/var/lib/mysql photoview: image: viktorstrate/photoview:latest restart: always ports: - "8123:80" depends_on: - db env_file: - photoview.env - mapbox.env volumes: - api_cache:/app/cache - /home/edpibu/Pictures:/edpibu/Pictures:ro volumes: db_data: api_cache: