Created
August 24, 2019 16:31
-
-
Save audacioustux/08e4a7211353fe837343b0d81508f62c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POSTGRES_PASSWORD="aluvajivalobashi" | |
POSTGRES_USER=audacioustux | |
POSTGRES_DB=nobinalo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
postgres: | |
image: postgres:12 | |
secrets: | |
- source: db_secrets | |
target: db_secrets.env | |
ports: | |
- '5432:5432' | |
tmpfs: /var/lib/postgresql/data | |
entrypoint: ["/bin/bash" , "-c", "export $$(paste /run/secrets/*.env -s -d '\n' | grep -v '^#' | xargs -d '\n') && /docker-entrypoint.sh postgres"] | |
command: postgres | |
redis: | |
image: redis:32bit | |
ports: | |
- '6379:6379' | |
secrets: | |
db_secrets: | |
file: ./db.env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment