Skip to content

Commit

Permalink
Use env variables instead of certs and key path.
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulla-ashurov committed Jun 29, 2023
1 parent 5d97981 commit 227fb80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/with-external-db/docker-compose-with-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ services:
user: postgres
volumes:
- ./pg-init-scripts:/docker-entrypoint-initdb.d
- ./ssl-certificates/root.crt:/var/lib/postgresql/root.crt
- ./ssl-certificates/server.crt:/var/lib/postgresql/server.crt
- ./ssl-certificates/server.key:/var/lib/postgresql/server.key
- ${ROOT_CERT_PATH}:/var/lib/postgresql/root.crt
- ${SERVER_CERT_PATH}:/var/lib/postgresql/server.crt
- ${SERVER_KEY_PATH}:/var/lib/postgresql/server.key
ports:
- 5432:5432
# Edit the environment variables in postgres.env to change the database name, username, password, etc.
Expand Down
4 changes: 4 additions & 0 deletions docker/with-external-db/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SSL certificates and key
ROOT_CERT_PATH="<path/to/root.crt>"
SERVER_CERT_PATH="<path/to/server.crt>"
SERVER_KEY_PATH="<path/to/server.key>"

0 comments on commit 227fb80

Please sign in to comment.