Skip to content

Commit

Permalink
🐳 Fix docker-compose setup
Browse files Browse the repository at this point in the history
* add redis
* add DISABLE_2FA envvar
* add SUBPATH envvar
  • Loading branch information
stevenbal committed Jun 28, 2024
1 parent c469e44 commit 891a6e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ services:
volumes:
- ./docker-init-db.sql:/docker-entrypoint-initdb.d/init_db.sql

redis:
image: redis

web:
build: .
image: maykinmedia/referentielijsten-api:latest
Expand All @@ -21,12 +24,17 @@ services:
- DB_NAME=referentielijsten
- DB_USER=referentielijsten
- DB_HOST=db
- CACHE_DEFAULT=redis:6379/0
- CACHE_AXES=redis:6379/0
- SUBPATH=${SUBPATH:-/}
- DISABLE_2FA=${DISABLE_2FA:-True}
# Only allow all hosts for development/testing purposes!
- ALLOWED_HOSTS=*
ports:
- 8000:8000
depends_on:
- db
- redis

# See: src/referentielijsten/conf/docker.py
# Optional containers below:
Expand Down

0 comments on commit 891a6e8

Please sign in to comment.