Created
April 2, 2021 14:46
-
-
Save PanagiotisPtr/a09026b0b0b5132a6d2aec8896e9a6ba to your computer and use it in GitHub Desktop.
basic PostgreSQL PgAdmin stack.yml
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.4" | |
services: | |
pgAdmin: | |
restart: always | |
image: dpage/pgadmin4 | |
container_name: "pgadmin" | |
ports: | |
- "8000:80" | |
environment: | |
PGADMIN_DEFAULT_EMAIL: [email protected] | |
PGADMIN_DEFAULT_PASSWORD: password | |
volumes: | |
- pgadmin:/var/lib/pgadmin | |
postgres: | |
image: postgres:13.2 | |
restart: always | |
environment: | |
POSTGRES_USER: username | |
POSTGRES_PASSWORD: password | |
POSTGRES_DB: maindb | |
container_name: "postgres" | |
ports: | |
- "5432:5432" | |
volumes: | |
- postgresdata:/var/lib/postgresql/data | |
volumes: | |
postgresdata: | |
pgadmin: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment