Skip to content

Commit

Permalink
Docker: Declare volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Nov 21, 2021
1 parent 930f8d5 commit 63ee3d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ ADD . /code
# Set env vars
ENV DJANGO_DEBUG=False

# Volumes
VOLUME ["/code/interna/static/", "/code/interna/media/"]

# Entry point
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/bin/bash", "entrypoint.sh"]
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Note: This config is not currently set up for development,
# it's meant mostly as an example for a productive deployment.
# Note: This config is not currently set up for development, it's meant mostly
# as an example for a productive deployment.
#
# This setup currently does not serve static files. In order to serve static
# files, mount the /code/interna/static directory to a directory on the host
# and configure your web server to serve these files on /static/.
#
# Additionally, you should ensure that the media files are put into a named
# volume or bind mount as well.

version: "3.9"

Expand Down

0 comments on commit 63ee3d7

Please sign in to comment.