Public | Automated Build

Last pushed: 2 years ago
Short Description
aharnum preferences-server
Full Description

GPII Preferences Server Dockerfile

This repository is used to build GPII Preferences Server Docker images.

Environment Variables

The following environment variables can be used to affect the container's behaviour:

  • COUCHDB_HOST_ADDRESS - allows the Preferences Server process to reach a CouchDB instance. An IPv4 address is expected

  • NODE_ENV - this should most likely be set to preferencesServer.production unless you would like to test more customized deployments

  • PRIME_DB - if this is the first time the Preferences Server is being deployed then you will want to use PRIME_DB=yes so that default test preferences can be modified and uploaded to CouchDB

Port(s) Exposed

  • 8082 TCP

Base Docker Image


docker pull gpii/preferences-server

Run preferences-server

If your CouchDB instance uses a IP address you could start a container like this:

docker run \
-d \
-p 8082:8082 \
--name="preferences_server" \
-e NODE_ENV=preferencesServer.production \
-e PRIME_DB=yes \

Build your own image

docker build --rm=true -t <your name>/preferences-server .
Docker Pull Command