diff --git a/docker-compose.yml b/docker-compose.yml index 2b71d5b..7df8628 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,19 +1,16 @@ version: '3' services: hermes: - # either build image with run.sh before running or adapt image to point to Docker Hub: e.g. sven0311tum/hermes:latest - image: hermes + image: hermes # TODO: Replace with the image tag from github container_name: hermes ports: - "17333:8080" environment: + - APNS_CERTIFICATE_PWD + - APNS_PROD_ENVIRONMENT - APNS_CERTIFICATE_PATH=/key/artemis-apns.p12 - # adapt the following line - - APNS_CERTIFICATE_PWD= - - APNS_PROD_ENVIRONMENT=false - GOOGLE_APPLICATION_CREDENTIALS=/firebase.json volumes: - # adapt the following lines - - :/key/artemis-apns.p12 - - :/firebase.json + - ${APNS_CERT_PATH}:/key/artemis-apns.p12 + - ${GOOGLE_APPLICATION_CREDENTIALS_JSON}:/firebase.json restart: on-failure diff --git a/example.env b/example.env new file mode 100644 index 0000000..71c27ec --- /dev/null +++ b/example.env @@ -0,0 +1,8 @@ +# APNS configuration +APNS_PROD_ENVIRONMENT=false +APNS_CERT_PATH=/key/artemis-apns.p12 +APNS_CERTIFICATE_PWD= + + +# Firebase configuration +GOOGLE_APPLICATION_CREDENTIALS_JSON=/firebase.json