Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
FIX: Update docker-compose.prod.yml to use volume mounts for keys
Browse files Browse the repository at this point in the history
  • Loading branch information
930C committed Jan 18, 2024
1 parent 138b04a commit d4c3334
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deployments/docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:

app:
image: "${SERVER_IMAGE:-ghcr.io/wwi21seb-projekt/server-alpha:main}" # It's possible to specify the image to use in the environment, default is the latest image from the github container registry
user: ${UID}:${GID}
restart: unless-stopped # Restart the container unless it was stopped by the user
depends_on:
- db
Expand All @@ -34,11 +35,12 @@ services:
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- JWT_PRIVATE_KEY=${JWT_PRIVATE_KEY}
- JWT_PUBLIC_KEY=${JWT_PUBLIC_KEY}
- MAILGUN_API_KEY=${MAILGUN_API_KEY}
ports:
- "${APP_PORT}:8080"
volumes:
- ${PWD}/private_key.pem:/private_key.pem
- ${PWD}/public_key.pem:/public_key.pem
networks:
- traefik_proxy
- default
Expand Down

0 comments on commit d4c3334

Please sign in to comment.