Skip to content

Commit

Permalink
Updated docker-compose for .env.
Browse files Browse the repository at this point in the history
  • Loading branch information
kfletche committed Aug 6, 2024
1 parent 3b6dba3 commit f7fc3fc
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,31 @@ services:
- redis
- datapusher
environment:
PGHOST: postgres
PGPORT: 5432
PGUSER: ckan_default
PGPASSWORD: pass
PGDATABASE: ckan_test
PGHOST: ${PGHOST}
PGPORT: ${PGPORT}
PGUSER: ${PGUSER}
PGPASSWORD: ${PGPASSWORD}
PGDATABASE: ${PGDATABASE}

CKAN_POSTGRES_DB: ckan_test
CKAN_DATASTORE_POSTGRES_DB: datastore_test
CKAN_POSTGRES_USER: ckan_default
CKAN_DATASTORE_POSTGRES_READ_USER: ckan_default
CKAN_DATASTORE_POSTGRES_WRITE_USER: ckan_default
CKAN_POSTGRES_PWD: pass
CKAN_DATASTORE_POSTGRES_READ_PWD: pass
CKAN_DATASTORE_POSTGRES_WRITE_PWD: pass
CKAN_POSTGRES_DB: ${CKAN_POSTGRES_DB}
CKAN_DATASTORE_POSTGRES_DB: ${CKAN_DATASTORE_POSTGRES_DB}
CKAN_POSTGRES_USER: ${CKAN_POSTGRES_USER}
CKAN_DATASTORE_POSTGRES_READ_USER: ${CKAN_DATASTORE_POSTGRES_READ_USER}
CKAN_DATASTORE_POSTGRES_WRITE_USER: ${CKAN_DATASTORE_POSTGRES_WRITE_USER}
CKAN_POSTGRES_PWD: ${CKAN_POSTGRES_PWD}
CKAN_DATASTORE_POSTGRES_READ_PWD: ${CKAN_DATASTORE_POSTGRES_READ_PWD}
CKAN_DATASTORE_POSTGRES_WRITE_PWD: ${CKAN_DATASTORE_POSTGRES_WRITE_PWD}

CKAN_SQLALCHEMY_URL: postgresql://ckan_default:pass@postgres/ckan_test
CKAN_DATASTORE_WRITE_URL: postgresql://ckan_default:pass@postgres/datastore_test
CKAN_DATASTORE_READ_URL: postgresql://ckan_default:pass@postgres/datastore_test
CKAN_SOLR_URL: http://solr:8983/solr/ckan_registry
CKAN_REDIS_URL: redis://redis:6379/1
CKAN_SQLALCHEMY_URL: ${CKAN_SQLALCHEMY_URL}
CKAN_DATASTORE_WRITE_URL: ${CKAN_DATASTORE_WRITE_URL}
CKAN_DATASTORE_READ_URL: ${CKAN_DATASTORE_READ_URL}
CKAN_SOLR_URL: ${CKAN_SOLR_URL}
CKAN_REDIS_URL: ${CKAN_REDIS_URL}

CKAN_SITE_URL: http://localhost:5001
CKAN_SITE_URL: ${CKAN_SITE_URL}

ports:
- "5001:5000"
- "${CKAN_SITE_URL}:5000"
volumes:
["./service.yaml:/srv/app/src/ckanext-canada/ckanext/canada/tables/service.yaml"]

Expand All @@ -46,9 +46,9 @@ services:
container_name: postgres
image: postgres:14
environment:
POSTGRES_USER: ckan_default
POSTGRES_PASSWORD: pass
POSTGRES_DB: ckan_test
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5432:5432"
volumes:
Expand Down

0 comments on commit f7fc3fc

Please sign in to comment.