diff --git a/bin/gen-config b/bin/gen-config index bf49876..1cb8c7e 100755 --- a/bin/gen-config +++ b/bin/gen-config @@ -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" ] diff --git a/premade/docker-compose.yml b/premade/docker-compose.yml new file mode 100644 index 0000000..183ca10 --- /dev/null +++ b/premade/docker-compose.yml @@ -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'