ajout Apps

This commit is contained in:
2024-05-03 12:13:44 +02:00
parent 6ff6c77cf2
commit 6ac26c2c8e
12 changed files with 129 additions and 8 deletions

View File

@ -6,3 +6,34 @@ networks:
#### SERVICES
services:
db:
image: mariadb:10.5
restart: always
environment:
- MYSQL_DATABASE=photoview
- MYSQL_USER=photoview
- MYSQL_PASSWORD=photosecret
- MYSQL_RANDOM_ROOT_PASSWORD=1
volumes:
- ./db:/var/lib/mysql
networks:
- back_network
photoview:
image: viktorstrate/photoview:2
restart: always
networks:
- back_network
ports:
- "8410:80"
depends_on:
- db
environment:
- PHOTOVIEW_DATABASE_DRIVER=mysql
- PHOTOVIEW_MYSQL_URL=photoview:photosecret@tcp(db)/photoview
- PHOTOVIEW_LISTEN_IP=photoview
- PHOTOVIEW_LISTEN_PORT=80
- PHOTOVIEW_MEDIA_CACHE=/app/cache
volumes:
- ./api_cache:/app/cache
- ./photos:/photos