Install using Docker Compose
This installation is meant for people who want to just try out WOO Publications on their own machine.
A Docker Compose file is available to get the app up and running in minutes. It contains ‘convenience’ settings, which means that no additional configuration is needed to run the app. Therefore, it should not be used for anything other than testing. For example, it includes:
A default
SECRET_KEYenvironment variableA predefined database with the environment variable
POSTGRES_HOST_AUTH_METHOD=trust. This lets us connect to the database without using a password.Debug mode is enabled.
Admin superuser credentials (
admin/admin).An API key
insecure-ea1a8d297e3b2d3313b8a30b18959c3.
Prerequisites
You will only need Docker tooling and nothing more:
Docker Engine (Desktop or Server)
Docker Compose (sometimes comes bundled with Docker Engine)
Getting started
Download the project as ZIP-file:
wget https://github.com/GPP-Woo/GPP-publicatiebank/archive/refs/heads/main.zip unzip main.zip cd registratie-component-main
Start the docker containers with
docker compose. If you want to run the containers in the background, add the-doption to the command below:docker compose up
The output should look similar to:
[+] Running 12/12 ✔ Network registratie-component-main_default Created 0.1s ✔ Volume "registratie-component-main_oz-media" Created 0.0s ✔ Volume "registratie-component-main_oz-private-media" Created 0.0s ✔ Volume "registratie-component-main_media" Created 0.0s ✔ Volume "registratie-component-main_log" Created 0.0s ✔ Volume "registratie-component-main_db" Created 0.0s ✔ Volume "registratie-component-main_redis-data" Created 0.0s ✔ Container registratie-component-main-redis-1 Created 0.2s ✔ Container registratie-component-main-db-1 Created 0.2s ✔ Container registratie-component-main-web-1 Created 0.1s ✔ Container registratie-component-main-openzaak-celery-1 Created 0.1s ✔ Container registratie-component-main-openzaak-web-1 Created 0.1s Attaching to db-1, openzaak-celery-1, openzaak-web-1, redis-1, web-1 Gracefully stopping... (press Ctrl+C again to force)
Navigate to
http://127.0.0.1:8000/admin/, where you can log in with theadminusername andadminpassword.You can authenticate to the API endpoints with the
Authorization: Token insecure-ea1a8d297e3b2d3313b8a30b18959c3HTTP request header.To stop the containers, press CTRL-C or if you used the
-doption:docker compose stop
If you want to get newer versions, you need to
pullbecause thedocker-compose.ymlcontains no explicit versions:docker compose pull