Docker updates for full files

This commit is contained in:
Fmstrat 2021-10-18 10:26:37 -04:00
parent e4e40e50fe
commit b36a4cf221
3 changed files with 9 additions and 6 deletions

View File

@ -7,7 +7,7 @@ export APP_SETTINGS=fittrackee.config.DevelopmentConfig
export APP_SECRET_KEY='just for test'
# export APP_WORKERS=
export APP_LOG=fittrackee.log
export UPLOAD_FOLDER=/uploads
export UPLOAD_FOLDER=/usr/src/apps/uploads
# Database
export DATABASE_URL=postgresql://fittrackee:fittrackee@fittrackee-db:5432/fittrackee

3
.gitignore vendored
View File

@ -45,3 +45,6 @@ yarn-error.log*
###############
*.log
nohup.out
# docker
data

View File

@ -10,7 +10,9 @@ services:
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./data/db:/var/lib/postgresql/data
fittrackee:
container_name: fittrackee
build: .
@ -28,7 +30,8 @@ services:
- mail
volumes:
- .:/usr/src/app
- fittrackee_upload:/uploads:rw
- ./data/workouts:/usr/src/app/workouts
- ./data/uploads:/usr/src/app/uploads
fittrackee_client:
container_name: fittrackee_client
@ -61,6 +64,3 @@ services:
ports:
- "1025:1025"
- "8025:8025"
volumes:
fittrackee_upload: