Skip to content

Instantly share code, notes, and snippets.

@pawiromitchel
Created February 20, 2022 09:09
Show Gist options
  • Save pawiromitchel/482fa24e7e2c751fe036e231e9c50159 to your computer and use it in GitHub Desktop.
Save pawiromitchel/482fa24e7e2c751fe036e231e9c50159 to your computer and use it in GitHub Desktop.
[postgresql + pgadmin docker file] #docker #postgres #pgadmin
version: '3.8'
services:
db:
container_name: pg_container
image: postgres
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: test_db
ports:
- "5432:5432"
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment