1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/photoview/docker-compose.yml
2022-08-30 14:24:50 +08:00

33 lines
778 B
YAML

version: "3.8"
services:
mysql:
image: mariadb:10.5
volumes:
- ./data/mysql:/var/lib/mysql
environment:
- MYSQL_DATABASE=photoview
- MYSQL_USER=photoview
- MYSQL_PASSWORD=photoview
- MYSQL_RANDOM_ROOT_PASSWORD=1
restart: unless-stopped
photoview:
image: viktorstrate/photoview:2
ports:
- "8000:80"
environment:
- PHOTOVIEW_DATABASE_DRIVER=mysql
- PHOTOVIEW_MYSQL_URL=photoview:photoview@tcp(mysql)/photoview
- PHOTOVIEW_LISTEN_IP=photoview
- PHOTOVIEW_LISTEN_PORT=80
- PHOTOVIEW_MEDIA_CACHE=/app/cache
# MAPBOX_TOKEN=<YOUR TOKEN HERE>
volumes:
- ./data/cache:/app/cache
- ./data/photos:/photos:ro
depends_on:
- mysql
restart: unless-stopped