Skip to content

Instantly share code, notes, and snippets.

@csokun
Created March 27, 2021 23:41
Show Gist options
  • Save csokun/7f2233278faf7bc5e45196ece149de1a to your computer and use it in GitHub Desktop.
Save csokun/7f2233278faf7bc5e45196ece149de1a to your computer and use it in GitHub Desktop.
# .env
# POSTGRES_PASSWORD=
# PGADMIN_DEFAULT_EMAIL=admin@localhost
# PGADMIN_DEFAULT_PASSWORD=
version: "3.3"
services:
pgsql:
image: postgres:11-alpine
restart: always
volumes:
- $PWD/pgdata11:/var/lib/postgresql/data
env_file: .env
ports:
- 5432:5432
pgadmin:
image: dpage/pgadmin4:4.29
restart: always
env_file: .env
volumes:
- $PWD/pg4admin:/var/lib/pgadmin
ports:
- 8282:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment