diff --git a/setup/compose.yaml b/setup/compose.yaml index 2846bb7..71220db 100644 --- a/setup/compose.yaml +++ b/setup/compose.yaml @@ -13,11 +13,12 @@ services: environment: POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres - # PGDATA: /var/lib/postgresql/data/pgdata + PGDATA: /var/lib/postgresql/data/pgdata ports: - 5432:5432 - #volumes: - # - cdm-db-pgdata:/var/lib/postgresql/data + volumes: + - cdm-db-pgdata:/var/lib/postgresql/data + - ./vocab:/data/vocab:ro healthcheck: test: "pg_isready -h localhost -U $$POSTGRES_USER" interval: 10s @@ -80,13 +81,13 @@ services: environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres - # PGDATA: /var/lib/postgresql/data/pgdata + PGDATA: /var/lib/postgresql/data/pgdata EHRBASE_USER_ADMIN: ehrbase EHRBASE_PASSWORD_ADMIN: ehrbase EHRBASE_USER: ehrbase_restricted EHRBASE_PASSWORD: ehrbase_restricted - # volumes: - # - ehrdb-pgdata:/var/lib/postgresql/data/pgdata + volumes: + - ehrdb-pgdata:/var/lib/postgresql/data/pgdata healthcheck: test: "pg_isready -h localhost -U $$POSTGRES_USER" interval: 10s @@ -97,6 +98,6 @@ networks: ehrbase-net: eos-net: -#volumes: -# cdm-db-pgdata: -# ehrdb-pgdata: +volumes: + cdm-db-pgdata: + ehrdb-pgdata: