Skip to content

Commit

Permalink
update docker-compose_build.yml to store volumes in 4cat/data folder …
Browse files Browse the repository at this point in the history
…by default
  • Loading branch information
dale-wahl committed Oct 12, 2023
1 parent 1a8d00b commit 796f370
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ module_cache.pb
webtool/fourcat/js/jquery-csv-master/
webtool/fourcat/static/data/word_embeddings/
*.session
data/
webtool/fourcat/static/boards.json
webtool/pages/reject-template.md
webtool/pages/access-policy.md
Expand Down
4 changes: 4 additions & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except these files
!.gitignore
14 changes: 7 additions & 7 deletions docker-compose_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST_AUTH_METHOD=${POSTGRES_HOST_AUTH_METHOD}
volumes:
- 4cat_db:/var/lib/postgresql/data/
- ./data/postgres/:/var/lib/postgresql/data/
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER}" ]
interval: 5s
Expand All @@ -31,9 +31,9 @@ services:
ports:
- ${PUBLIC_API_PORT}:4444
volumes:
- 4cat_data:/usr/src/app/data/
- 4cat_config:/usr/src/app/config/
- 4cat_logs:/usr/src/app/logs/
- ./data/datasets/:/usr/src/app/data/
- ./data/config/:/usr/src/app/config/
- ./data/logs/:/usr/src/app/logs/
entrypoint: docker/docker-entrypoint.sh

frontend:
Expand All @@ -46,9 +46,9 @@ services:
- ${PUBLIC_PORT}:5000
- ${TELEGRAM_PORT}:443
volumes:
- 4cat_data:/usr/src/app/data/
- 4cat_config:/usr/src/app/config/
- 4cat_logs:/usr/src/app/logs/
- ./data/datasets/:/usr/src/app/data/
- ./data/config/:/usr/src/app/config/
- ./data/logs/:/usr/src/app/logs/
command: ["docker/wait-for-backend.sh", "gunicorn", "--worker-tmp-dir", "/dev/shm", "--workers", "2", "--threads", "4", "--worker-class", "gthread", "--access-logfile", "/usr/src/app/logs/access_gunicorn.log", "--log-level", "info", "--bind", "0.0.0.0:5000", "webtool:app"]

volumes:
Expand Down

0 comments on commit 796f370

Please sign in to comment.