Skip to content

Commit

Permalink
Merge pull request #61 from the-deep/feature/volume-for-server-documents
Browse files Browse the repository at this point in the history
[DEV] Add volumes for server media/static files
  • Loading branch information
subinasr authored Sep 28, 2023
2 parents 27f1464 + 417c513 commit 73f30c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ x-server: &base_server_setup
CELERY_REDIS_URL: ${CELERY_REDIS_URL:-redis://redis:6379/1}
DJANGO_CACHE_REDIS_URL: ${DJANGO_CACHE_REDIS_URL:-redis://redis:6379/2}
TEST_DJANGO_CACHE_REDIS_URL: ${TEST_DJANGO_CACHE_REDIS_URL:-redis://redis:6379/12}
# FS Config
DJANGO_STATIC_ROOT: '/app-assets/static'
DJANGO_MEDIA_ROOT: '/app-assets/media'
env_file:
# Provide additional environment variables using .env file
- .env
volumes:
- ./backend/:/code
- media:/media
- server-media:/app-assets/media
- server-static:/app-assets/static
- ipython_data_local:/root/.ipython/profile_default # persist ipython data, including ipython history
depends_on:
- db
Expand Down Expand Up @@ -125,7 +129,8 @@ services:


volumes:
media:
server-media:
server-static:
postgres-data15:
redis-data:
ipython_data_local:
Expand Down

0 comments on commit 73f30c9

Please sign in to comment.