Last active
August 21, 2022 03:10
-
-
Save RioChndr/506464390614a3c82aa23b236a115977 to your computer and use it in GitHub Desktop.
Docker compose postgresql
This file contains 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.1' | |
services: | |
db_postgres: | |
container_name: db_postgres_mynykah | |
image: postgres | |
environment: | |
POSTGRES_DB: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: password123 | |
PGDATA: /var/lib/postgresql/data/pgdata | |
volumes: | |
- ./pgdata:/var/lib/postgresql/data | |
ports: | |
- "8875:5432" | |
restart: unless-stopped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment