Skip to content

Instantly share code, notes, and snippets.

@jaccon
Created April 1, 2020 02:20
Show Gist options
  • Save jaccon/dd7c224be04c422e2b164fc059e5d1d0 to your computer and use it in GitHub Desktop.
Save jaccon/dd7c224be04c422e2b164fc059e5d1d0 to your computer and use it in GitHub Desktop.
version: '2'
volumes:
dados:
services:
db:
image: postgres:9.6
environment:
POSTGRES_DB: "db"
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
- dados:/var/lib/postgresql/data
- ./scripts:/scripts
- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment