Skip to content

Instantly share code, notes, and snippets.

@maxbraynner
Created February 5, 2019 23:19
Show Gist options
  • Select an option

  • Save maxbraynner/eeb54d624efca722e767a6956b5ac4d3 to your computer and use it in GitHub Desktop.

Select an option

Save maxbraynner/eeb54d624efca722e767a6956b5ac4d3 to your computer and use it in GitHub Desktop.

Revisions

  1. maxbraynner created this gist Feb 5, 2019.
    28 changes: 28 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    version: '3.1'

    services:

    db_postgres:
    image: postgres
    restart: always
    volumes:
    - pgdata:/var/lib/postgresql/data
    environment:
    POSTGRES_PASSWORD: max123
    ports:
    - 5432:5432

    # pgadmin4:
    # # image: dpage/pgadmin4:latest
    # image: chorss/docker-pgadmin4:3.2
    # restart: always
    # environment:
    # # PGADMIN_DEFAULT_EMAIL: [email protected]
    # # PGADMIN_DEFAULT_PASSWORD: postgres
    # PGADMIN_SETUP_EMAIL: [email protected]
    # PGADMIN_SETUP_PASSWORD: postgres
    # ports:
    # - 80:5050

    volumes:
    pgdata: