Base config

This commit is contained in:
Edgar P. Burkhart 2021-07-22 15:53:05 +02:00
parent e8557e9533
commit b7217a5b89
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 11 additions and 21 deletions

4
db.env
View file

@ -1,4 +0,0 @@
MYSQL_DATABASE=photoview
MYSQL_USER=photoview
MYSQL_PASSWORD=photo-secret
MYSQL_RANDOM_ROOT_PASSWORD=1

View file

@ -1,32 +1,24 @@
version: "3"
services:
db:
container_name: photoview_db
image: mariadb
restart: always
env_file:
- db.env
volumes:
- db_data:/var/lib/mysql
photoview:
container_name: photoview
image: viktorstrate/photoview:latest
restart: always
ports:
- "8123:80"
depends_on:
- db
extra_hosts:
- "host.docker:host-gateway"
env_file:
- photoview.env
- mapbox.env
- db.env
volumes:
- api_cache:/app/cache
- /home/edpibu/Pictures:/edpibu/Pictures:ro
- /srv/evg:/srv/evg:ro
volumes:
db_data:
api_cache:

View file

@ -1,5 +1,7 @@
MYSQL_URL=photoview:photo-secret@tcp(db)/photoview
API_LISTEN_IP=photoview
API_LISTEN_PORT=80
PHOTO_CACHE=/app/cache
PUBLIC_ENDPOINT=https://photos.edgarpierre.fr/
PHOTOVIEW_DATABASE_DRIVER=postgres
PHOTOVIEW_LISTEN_IP=photoview
PHOTOVIEW_LISTEN_PORT=80
PHOTOVIEW_MEDIA_CACHE=/app/cache
#PHOTOVIEW_API_ENDPOINT=https://photos.edgarpierre.fr/
#PHOTOVIEW_UI_ENDPOINT=https://photos.edgarpierre.fr/
#PHOTOVIEW_SERVE_UI=1