Skip to content

Commit

Permalink
docker: add a cache dir writable by docker user
Browse files Browse the repository at this point in the history
Now required by uv
Refs: #3682
  • Loading branch information
leo-naeka committed Aug 6, 2024
1 parent 9190dc7 commit e940c62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ services:
- PGPASSWORD=password
- PYTHONPATH=.
- ITOU_LOG_LEVEL=DEBUG
- ITOU_CACHE=/app/.cache
- XDG_CACHE_HOME=/app/.cache
- CELLAR_ADDON_HOST=minio:${MINIO_PORT_ON_DOCKER_HOST:-9000}
- VIRTUAL_ENV=/app/.venv-docker
- REDIS_URL=redis://redis:6379
Expand All @@ -73,6 +73,7 @@ services:
volumes:
# Mount the current directory into `/app` inside the running container.
- .:/app
- itou_cache:/app/.cache
restart: unless-stopped
ports:
- "127.0.0.1:${DJANGO_PORT_ON_DOCKER_HOST:-8000}:8000"
Expand All @@ -86,3 +87,4 @@ services:
volumes:
postgres_data:
itou_minio:
itou_cache:
1 change: 1 addition & 0 deletions docker/dev/django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ ENTRYPOINT ["/entrypoint.sh"]
# Don't use root as default user
USER $APP_USER
WORKDIR $APP_DIR
RUN mkdir -p .cache

0 comments on commit e940c62

Please sign in to comment.