Skip to content

Instantly share code, notes, and snippets.

@gishi-yama
Created June 5, 2019 14:04
Show Gist options
  • Save gishi-yama/c4fb97e4dd68bc29a9737f31d846d386 to your computer and use it in GitHub Desktop.
Save gishi-yama/c4fb97e4dd68bc29a9737f31d846d386 to your computer and use it in GitHub Desktop.
postgresql_docker-compose
version: "3.7"
services:
db:
image: postgres:11-alpine
volumes:
- pg11-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_INITDB_ARGS: "--no-locale --encoding=UTF-8"
tty: true
ports:
- "5432:5432"
restart: always
volumes:
pg11-data:%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment