Skip to content

Instantly share code, notes, and snippets.

@britonad
Created August 10, 2021 11:34
Show Gist options
  • Save britonad/455b22a979aba2c55acbddb0d7ccef3e to your computer and use it in GitHub Desktop.
Save britonad/455b22a979aba2c55acbddb0d7ccef3e to your computer and use it in GitHub Desktop.
Postgis container with PGAdmin4 interface for nice and easy local development when a DB needed.
version: "3.7"
services:
postgresql:
image: postgis/postgis
environment:
POSTGRES_DB: "geo"
POSTGRES_USER: "geo"
POSTGRES_PASSWORD: "geo"
ports:
- 5432:5432
volumes:
- "postgres:/var/lib/postgresql/data"
restart: always
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "root@localhost.ua"
PGADMIN_DEFAULT_PASSWORD: "pass"
PGADMIN_LISTEN_ADDRESS: "0.0.0.0"
PGADMIN_LISTEN_PORT: 80
ports:
- 8080:80
volumes:
- "pgadmin:/var/lib/pgadmin"
restart: always
volumes:
postgres:
driver: local
pgadmin:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment