diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..915d53df4 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3' +services: + db: + image: dhis2/postgres-contrib + restart: unless-stopped + environment: + POSTGRES_DB: apphub + POSTGRES_USER: apphub + POSTGRES_PASSWORD: apphub + ports: + - 5433:5432 diff --git a/server/.env.template b/server/.env.template index de48627a9..ab945ab20 100644 --- a/server/.env.template +++ b/server/.env.template @@ -8,11 +8,11 @@ NODE_ENV= # (i.e. no need to set them manually in EBS environments). In local/other # environments configure these for the postgres database to use for the app hub # backend. -RDS_HOSTNAME= -RDS_USERNAME= -RDS_PASSWORD= -RDS_DB_NAME= -RDS_DB_PORT= +RDS_HOSTNAME=localhost +RDS_USERNAME=apphub +RDS_PASSWORD=apphub +RDS_DB_NAME=apphub +RDS_DB_PORT=5433 # Authentication config. # Set `NO_AUTH_MAPPED_USER_ID=true` if no auth is used (such as in development).