Skip to content
Snippets Groups Projects
Verified Commit bf98e2c9 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Make /etc/biscuit mountable from the host.

parent c906c52c
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ RUN pip install "poetry==$POETRY_VERSION"; \
poetry build && /srv/venv/bin/pip install dist/*.whl
# Build messages and assets
RUN mkdir /srv/media /srv/static /var/backups/biscuit; \
RUN mkdir /etc/biscuit /srv/media /srv/static /var/backups/biscuit; \
/srv/venv/bin/python manage.py compilemessages; \
/srv/venv/bin/python manage.py collectstatic --no-input --clear
......@@ -53,5 +53,9 @@ RUN apt-get remove --purge -y \
apt-get clean -y; \
rm -f /var/lib/apt/lists/*_*
# Mark /etc/biscuit as coming from the host
VOLUME /etc/biscuit
# Define entrypoint and gunicorn running on port 8000
EXPOSE 8000
ENTRYPOINT ["/usr/src/app/BiscuIT-ng/docker/entrypoint.sh"]
......@@ -16,6 +16,7 @@ services:
- biscuit_media:/srv/media
- biscuit_static:/srv/static
- biscuit_backups:/var/backups/biscuit
- biscuit_config:/etc/biscuit
environment:
- BISCUIT_secret_key=DoNotUseInProduction
- BISCUIT_http__allowed_hosts="['*']"
......@@ -39,3 +40,4 @@ volumes:
biscuit_media:
biscuit_static:
biscuit_backups:
biscuit_config:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment