Skip to content

Instantly share code, notes, and snippets.

@PanagiotisPtr
Created April 2, 2021 14:46
Show Gist options
  • Save PanagiotisPtr/a09026b0b0b5132a6d2aec8896e9a6ba to your computer and use it in GitHub Desktop.
Save PanagiotisPtr/a09026b0b0b5132a6d2aec8896e9a6ba to your computer and use it in GitHub Desktop.
basic PostgreSQL PgAdmin stack.yml
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