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" version: "3"
services: services:
db:
container_name: photoview_db
image: mariadb
restart: always
env_file:
- db.env
volumes:
- db_data:/var/lib/mysql
photoview: photoview:
container_name: photoview container_name: photoview
image: viktorstrate/photoview:latest image: viktorstrate/photoview:latest
restart: always restart: always
ports: ports:
- "8123:80" - "8123:80"
depends_on: extra_hosts:
- db - "host.docker:host-gateway"
env_file: env_file:
- photoview.env - photoview.env
- mapbox.env - mapbox.env
- db.env
volumes: volumes:
- api_cache:/app/cache - api_cache:/app/cache
- /home/edpibu/Pictures:/edpibu/Pictures:ro - /home/edpibu/Pictures:/edpibu/Pictures:ro
- /srv/evg:/srv/evg:ro
volumes: volumes:
db_data:
api_cache: api_cache:

View file

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