give a try to photonix
This commit is contained in:
parent
8ce744961f
commit
992e9475d8
4 changed files with 69 additions and 0 deletions
|
@ -13,6 +13,7 @@ HOST_BLOG=blog
|
||||||
HOST_DOKUWIKI=dokuwiki
|
HOST_DOKUWIKI=dokuwiki
|
||||||
HOST_PIGALLERY=pigallery
|
HOST_PIGALLERY=pigallery
|
||||||
HOST_PHOTOVIEW=photoview
|
HOST_PHOTOVIEW=photoview
|
||||||
|
HOST_PHOTONIX=photonix
|
||||||
HOST_SEAFILE=seafile
|
HOST_SEAFILE=seafile
|
||||||
HOST_SELFOSS=selfoss
|
HOST_SELFOSS=selfoss
|
||||||
HOST_SHAARLI=shaarli
|
HOST_SHAARLI=shaarli
|
||||||
|
|
64
photo/docker-compose.photonix.yml
Executable file
64
photo/docker-compose.photonix.yml
Executable file
|
@ -0,0 +1,64 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
container_name: photonix-postgres
|
||||||
|
image: postgres:11.1-alpine
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: photonix
|
||||||
|
POSTGRES_PASSWORD: password
|
||||||
|
volumes:
|
||||||
|
- ./data/db:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- photo-backend
|
||||||
|
|
||||||
|
redis:
|
||||||
|
container_name: photonix-redis
|
||||||
|
image: redis:6.2.2
|
||||||
|
networks:
|
||||||
|
- photo-backend
|
||||||
|
|
||||||
|
photonix:
|
||||||
|
container_name: photonix
|
||||||
|
image: photonixapp/photonix:latest
|
||||||
|
expose:
|
||||||
|
- 80
|
||||||
|
environment:
|
||||||
|
ENV: prd
|
||||||
|
POSTGRES_HOST: postgres
|
||||||
|
POSTGRES_DB: photonix
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: password
|
||||||
|
REDIS_HOST: redis
|
||||||
|
ALLOWED_HOSTS: '*'
|
||||||
|
# More configuration options here: https://photonix.org/docs/configuration/
|
||||||
|
volumes:
|
||||||
|
# - ./data/photos:/data/photos
|
||||||
|
- photonix_raw_photos:/data/raw-photos-processed
|
||||||
|
- photonix_cache:/data/cache
|
||||||
|
- photonix_models:/data/models
|
||||||
|
- type: bind
|
||||||
|
source: ${ROOT_INSTALL}/data/seafile-fuse
|
||||||
|
target: /data/photos
|
||||||
|
bind:
|
||||||
|
propagation: rslave
|
||||||
|
privileged: true
|
||||||
|
cap_add:
|
||||||
|
- SYS_ADMIN
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
- redis
|
||||||
|
networks:
|
||||||
|
- photo-backend
|
||||||
|
- photo-frontend
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.photo.rule=Host(`${HOST_PHOTONIX}.${DOMAIN}`)
|
||||||
|
- traefik.http.routers.photo.entrypoints=https
|
||||||
|
- traefik.http.routers.photo.tls=true
|
||||||
|
- traefik.docker.network=photo-frontend
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
photonix_raw_photos:
|
||||||
|
photonix_cache:
|
||||||
|
photonix_models:
|
|
@ -21,6 +21,7 @@ case "$1" in
|
||||||
chmod -x posteio/docker-compose.posteio.yml
|
chmod -x posteio/docker-compose.posteio.yml
|
||||||
chmod -x netdata/docker-compose.netdata.yml
|
chmod -x netdata/docker-compose.netdata.yml
|
||||||
chmod -x photo/docker-compose.pigallery.yml
|
chmod -x photo/docker-compose.pigallery.yml
|
||||||
|
chmod -x photo/docker-compose.photoview.yml
|
||||||
# local testing
|
# local testing
|
||||||
chmod -x traefik/docker-compose.traefik.yml
|
chmod -x traefik/docker-compose.traefik.yml
|
||||||
exit 0;;
|
exit 0;;
|
||||||
|
@ -30,6 +31,7 @@ case "$1" in
|
||||||
chmod +x posteio/docker-compose.posteio.yml
|
chmod +x posteio/docker-compose.posteio.yml
|
||||||
chmod +x netdata/docker-compose.netdata.yml
|
chmod +x netdata/docker-compose.netdata.yml
|
||||||
chmod +x photo/docker-compose.pigallery.yml
|
chmod +x photo/docker-compose.pigallery.yml
|
||||||
|
chmod +x photo/docker-compose.photoview.yml
|
||||||
chmod +x traefik/docker-compose.traefik.yml
|
chmod +x traefik/docker-compose.traefik.yml
|
||||||
exit 0;;
|
exit 0;;
|
||||||
*)
|
*)
|
||||||
|
|
|
@ -12,6 +12,7 @@ case "$1" in
|
||||||
chmod -x posteio/docker-compose.posteio.yml
|
chmod -x posteio/docker-compose.posteio.yml
|
||||||
chmod -x netdata/docker-compose.netdata.yml
|
chmod -x netdata/docker-compose.netdata.yml
|
||||||
chmod -x photo/docker-compose.pigallery.yml
|
chmod -x photo/docker-compose.pigallery.yml
|
||||||
|
chmod -x photo/docker-compose.photoview.yml
|
||||||
# live server
|
# live server
|
||||||
chmod -x traefik/docker-compose.traefik-local.yml
|
chmod -x traefik/docker-compose.traefik-local.yml
|
||||||
exit 0;;
|
exit 0;;
|
||||||
|
@ -21,6 +22,7 @@ case "$1" in
|
||||||
chmod +x posteio/docker-compose.posteio.yml
|
chmod +x posteio/docker-compose.posteio.yml
|
||||||
chmod +x netdata/docker-compose.netdata.yml
|
chmod +x netdata/docker-compose.netdata.yml
|
||||||
chmod +x photo/docker-compose.pigallery.yml
|
chmod +x photo/docker-compose.pigallery.yml
|
||||||
|
chmod +x photo/docker-compose.photoview.yml
|
||||||
chmod +x traefik/docker-compose.traefik-local.yml
|
chmod +x traefik/docker-compose.traefik-local.yml
|
||||||
exit 0;;
|
exit 0;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Add table
Reference in a new issue