Skip to content

Instantly share code, notes, and snippets.

@nurmuhammadsirat
Created March 16, 2020 05:20
Show Gist options
  • Save nurmuhammadsirat/4b4dc8e56562d6ff7825bd9dec39c12f to your computer and use it in GitHub Desktop.
Save nurmuhammadsirat/4b4dc8e56562d6ff7825bd9dec39c12f to your computer and use it in GitHub Desktop.
Need postgres server and client? I gotchu fam
version: '3.7'
services:
adminer:
image: adminer:latest
ports:
- "8080:8080"
postgres:
image: postgres:11.5
environment:
POSTGRES_DB: MY_DATABASE
POSTGRES_USER: postgres
POSTGRES_PASSWORD: hunter2
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- type: volume
source: pgdata
target: /var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
volumes:
pgdata:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment