-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐳 [#18] Add Open Zaak to compose stack
* Switched DB image to a version with postgis for Open Zaak * Added (default) Open Zaak 1.14 to compose (web, celery) * Wired up the DB initialiation scripts to create the OZ db * Set up dependencies with redis/DB * Added host.docker.internal gateway to extra hosts
- Loading branch information
1 parent
acbab87
commit 5d2c15a
Showing
5 changed files
with
107 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Open Zaak docker configuration | ||
|
||
This directory contains supporting configuration and infrastructure to run Open Zaak | ||
via `docker compose`. | ||
|
||
You need Docker Engine v20.10 or newer for the documented setup to work. | ||
|
||
## Spinning up the services | ||
|
||
In the root of the project, spin up Open Zaak via `compose`: | ||
|
||
```bash | ||
docker compose up --detach openzaak-web # or just `docker compose up` to bring everything up | ||
``` | ||
|
||
Open Zaak binds to port 8001 on the host system. | ||
|
||
## Accessing the admin environment | ||
|
||
Open your browser and navigate to http://localhost:8001/admin/, where you can log in | ||
with the credentials `admin` / `admin`. | ||
|
||
## Dumping the fixture | ||
|
||
The service automatically loads the fixtures provided in the `fixtures` directory. When | ||
making changes in the web interface to the configuration, you must update these | ||
fixtures: | ||
|
||
```bash | ||
# from the root of the repository | ||
docker compose run openzaak-web \ | ||
python src/manage.py dumpdata \ | ||
--indent=4 \ | ||
--output /app/fixtures/configuration.json \ | ||
authorizations.applicatie \ | ||
vng_api_common.jwtsecret \ | ||
config \ | ||
catalogi | ||
``` | ||
|
||
Depending on your OS and local user ID, you may need to grant additional write permissions: | ||
|
||
```bash | ||
chmod -R o+rwx ./docker/open-zaak/fixtures | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CREATE USER openzaak; | ||
CREATE DATABASE openzaak WITH OWNER openzaak; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "openzaak" <<-EOSQL | ||
CREATE EXTENSION postgis; | ||
CREATE EXTENSION pg_trgm; | ||
EOSQL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |