Skip to content

Instantly share code, notes, and snippets.

@audacioustux
Created August 24, 2019 16:31
Show Gist options
  • Save audacioustux/08e4a7211353fe837343b0d81508f62c to your computer and use it in GitHub Desktop.
Save audacioustux/08e4a7211353fe837343b0d81508f62c to your computer and use it in GitHub Desktop.
POSTGRES_PASSWORD="aluvajivalobashi"
POSTGRES_USER=audacioustux
POSTGRES_DB=nobinalo
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