Skip to content

Commit

Permalink
generate correct compose for nfs
Browse files Browse the repository at this point in the history
  • Loading branch information
zsteinkamp committed Mar 27, 2024
1 parent 10c5c84 commit 64ff6d7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/gen-config
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ then
cat << EOF >> docker-compose.yml
driver: local
driver_opts:
type: 'nfs4'
o: 'addr=${PHOTODIRS_NFS_HOST},vers=4,soft,nolock'
type: 'nfs'
o: 'addr=${PHOTODIRS_NFS_HOST},nfsvers=4,soft,nolock'
device: ':${PHOTODIRS_NFS_PATH}'
EOF
elif [ "bind" == "$PHOTODIRS_MOUNT_TYPE" ]
Expand Down
46 changes: 46 additions & 0 deletions premade/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: photodirs_imgs
services:
nginx:
image: ghcr.io/zsteinkamp/photodirs-nginx:main
depends_on:
- frontend
- api
- admin
ports:
- '8333:3333'
- '9333:4333'
restart: unless-stopped
volumes:
- prod_cache:/cache:ro

frontend:
image: ghcr.io/zsteinkamp/photodirs-frontend:main
restart: unless-stopped

api:
image: ghcr.io/zsteinkamp/photodirs-api:main
restart: unless-stopped
volumes:
- prod_cache:/cache
- prod_albums:/albums:ro

watcher:
image: ghcr.io/zsteinkamp/photodirs-api:main
restart: unless-stopped
volumes:
- prod_cache:/cache
- prod_albums:/albums:ro
admin:
image: ghcr.io/zsteinkamp/photodirs-admin:main
restart: unless-stopped
volumes:
- prod_cache:/cache
- prod_albums:/albums:rw
volumes:
prod_cache:
prod_albums:
driver: local
driver_opts:
type: 'nfs'
o: 'addr=truenas.lan,nfsvers=4,soft,nolock'
device: ':/mnt/data-pool/shared/photos'

0 comments on commit 64ff6d7

Please sign in to comment.