Fixing docker-compose so it can be deployed multiple times

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2023-01-10 16:47:22 -08:00
parent 1767e807ea
commit f34861421c
3 changed files with 6 additions and 12 deletions

1
.env
View File

@ -1 +0,0 @@
USER_ID=1000:1000

9
.gitignore vendored
View File

@ -1,8 +1 @@
config/local.json .env
models
node_modules
./elements
frontend/bower_components
pictures
db
*.db

View File

@ -4,14 +4,16 @@ services:
photos: photos:
build: . build: .
image: photos:latest image: photos:latest
container_name: dad-photos container_name: photos
# depends_on: # depends_on:
# - db # - db
restart: always restart: always
env_file:
- .env
ports: ports:
- 8135:8123 - ${PORT}:${PORT}
volumes: volumes:
- /home/jketreno/.pic-chalkwharf-bk:/pictures - ${PICTURES}:/pictures
- ${PWD}/db:/db - ${PWD}/db:/db
- ${PWD}:/website - ${PWD}:/website
- ${PWD}/models:/root/.deepface - ${PWD}/models:/root/.deepface