Skip to content

Instantly share code, notes, and snippets.

@oxlb
Created October 8, 2020 22:46
Show Gist options
  • Save oxlb/3b7be5912a2d2017432decc4eabb9554 to your computer and use it in GitHub Desktop.
Save oxlb/3b7be5912a2d2017432decc4eabb9554 to your computer and use it in GitHub Desktop.
go lang postgres
version: '3.6'
services:
postgres:
image: postgres
restart: always
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=root
ports:
- "5432:5432"
volumes:
- ./docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql
pgadmin-compose:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "test123!"
ports:
- "16543:80"
depends_on:
- postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment