Skip to content

Commit

Permalink
Fix docker compose config
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtze committed May 6, 2024
1 parent 17523dc commit d57b5b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
13 changes: 5 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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=<pwd_for_certificate>
- APNS_PROD_ENVIRONMENT=false
- GOOGLE_APPLICATION_CREDENTIALS=/firebase.json
volumes:
# adapt the following lines
- <path_to_apns_certificate>:/key/artemis-apns.p12
- <path_to_google_credentials_json>:/firebase.json
- ${APNS_CERT_PATH}:/key/artemis-apns.p12
- ${GOOGLE_APPLICATION_CREDENTIALS_JSON}:/firebase.json
restart: on-failure
8 changes: 8 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# APNS configuration
APNS_PROD_ENVIRONMENT=false
APNS_CERT_PATH=/key/artemis-apns.p12
APNS_CERTIFICATE_PWD=<pwd_for_certificate>


# Firebase configuration
GOOGLE_APPLICATION_CREDENTIALS_JSON=/firebase.json

0 comments on commit d57b5b2

Please sign in to comment.