Skip to content

Commit

Permalink
feat: add docker secret examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Feb 25, 2021
1 parent b271653 commit f09cca0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
secrets:
postgres_db:
# The database's name.
file: ./secrets/postgres/db.secret
file: ./docker/secrets/postgres/db.secret
postgres_password:
# The database's password.
file: ./secrets/postgres/password.secret
file: ./docker/secrets/postgres/password.secret
postgres_user:
# The database's default user.
file: ./secrets/postgres/user.secret
file: ./docker/secrets/postgres/user.secret
services:
postgres:
# This runs the database that everything else connects to
Expand Down
1 change: 1 addition & 0 deletions docker/secrets/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.secret
1 change: 1 addition & 0 deletions docker/secrets/postgres/db.secret.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nbt
1 change: 1 addition & 0 deletions docker/secrets/postgres/password.secret.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
P4$$word
1 change: 1 addition & 0 deletions docker/secrets/postgres/user.secret.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
username

0 comments on commit f09cca0

Please sign in to comment.