Created
March 16, 2020 05:20
-
-
Save nurmuhammadsirat/4b4dc8e56562d6ff7825bd9dec39c12f to your computer and use it in GitHub Desktop.
Need postgres server and client? I gotchu fam
This file contains hidden or 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: | |
| 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