Skip to content

Commit

Permalink
Merge pull request #482 from City-of-Helsinki/UHF-X-hakuvahti_as_opti…
Browse files Browse the repository at this point in the history
…onal

UHF-X: Make Hakuvahti disabled in default compose.yaml
  • Loading branch information
sundflux authored May 30, 2024
2 parents c94ff6c + dd1d3d2 commit 8149fa1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,11 @@ This will log you inside the app container:
```
$ make shell
```

## Enable Hakuvahti features

To enable [Hakuvahti features](https://github.com/City-of-Helsinki/helfi-hakuvahti) for local development or usage, you need to first install Hakuvahti and then enable Hakuvahti network in compose.yaml.

These lines are commented out with comment `# Uncomment to enable Hakuvahti:`

Specifically what is commented out: `HAKUVAHTI_URL` environment variable, `helfi-hakuvahti_helfi-hakuvahti-network` for `app` and `elastic` containers. Finally it needs to be listed under `networks`. This enables Hakuvahti server to access ElasticSearch.
14 changes: 9 additions & 5 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ services:
DRUPAL_VARNISH_PORT: 6081
REDIS_HOST: redis
PROJECT_NAME: "${PROJECT_NAME}"
HAKUVAHTI_URL: "${HAKUVAHTI_URL}"
# Uncomment to enable Hakuvahti:
# HAKUVAHTI_URL: "${HAKUVAHTI_URL}"
extra_hosts:
- "host.docker.internal:host-gateway"
- "${DRUPAL_HOSTNAME}:host-gateway"
networks:
- internal
- stonehenge-network
- helfi-hakuvahti_helfi-hakuvahti-network
# Uncomment to enable Hakuvahti:
# - helfi-hakuvahti_helfi-hakuvahti-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-app.entrypoints=https"
Expand Down Expand Up @@ -141,7 +143,8 @@ services:
networks:
- internal
- stonehenge-network
- helfi-hakuvahti_helfi-hakuvahti-network
# Uncomment to enable Hakuvahti:
# - helfi-hakuvahti_helfi-hakuvahti-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-elastic.entrypoints=https"
Expand Down Expand Up @@ -176,8 +179,9 @@ networks:
external: false
stonehenge-network:
external: true
helfi-hakuvahti_helfi-hakuvahti-network:
external: true
# Uncomment to enable Hakuvahti:
# helfi-hakuvahti_helfi-hakuvahti-network:
# external: true

volumes:
db_volume:
Expand Down

0 comments on commit 8149fa1

Please sign in to comment.