Skip to content
Snippets Groups Projects
Commit d4ecee02 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

add shared volume to database container

parent 2934c5ac
No related branches found
No related tags found
No related merge requests found
Pipeline #35296 passed
...@@ -10,3 +10,6 @@ ...@@ -10,3 +10,6 @@
## data procedures (rough) ## data procedures (rough)
* [dump/load a copy of the alta database](https://web-of-wyrd.nl/myworkwiki/doku.php?id=alta_runtime&s[]=dump#qhow_do_i_dump_and_load_a_copy_of_the_production_database_with_postgres_into_a_dev_or_vm_environment) * [dump/load a copy of the alta database](https://web-of-wyrd.nl/myworkwiki/doku.php?id=alta_runtime&s[]=dump#qhow_do_i_dump_and_load_a_copy_of_the_production_database_with_postgres_into_a_dev_or_vm_environment)
* [dump/load esap_cache sql](https://web-of-wyrd.nl/myworkwiki/doku.php?id=ucac4_converter&s[]=ucac4#performance) * [dump/load esap_cache sql](https://web-of-wyrd.nl/myworkwiki/doku.php?id=ucac4_converter&s[]=ucac4#performance)
docker exec -it adex-postgres psql -U postgres -f /shared/sql/adex_cache.sql
...@@ -22,6 +22,7 @@ services: ...@@ -22,6 +22,7 @@ services:
env_file: env_file:
- $HOME/shared/adex_backend.env - $HOME/shared/adex_backend.env
volumes: volumes:
- $HOME/shared:/shared
- adex-cache-db:/var/lib/postgresql/data - adex-cache-db:/var/lib/postgresql/data
restart: always restart: always
...@@ -34,6 +35,8 @@ services: ...@@ -34,6 +35,8 @@ services:
networks: networks:
- traefik_proxy - traefik_proxy
- adex_network - adex_network
volumes:
- $HOME/shared:/shared
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.adex-backend-fastapi.entryPoints=websecure" - "traefik.http.routers.adex-backend-fastapi.entryPoints=websecure"
......
...@@ -22,6 +22,7 @@ services: ...@@ -22,6 +22,7 @@ services:
env_file: env_file:
- $HOME/shared/adex_backend.env - $HOME/shared/adex_backend.env
volumes: volumes:
- $HOME/shared:/shared
- adex-cache-db:/var/lib/postgresql/data - adex-cache-db:/var/lib/postgresql/data
restart: always restart: always
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment