Skip to content

Instantly share code, notes, and snippets.

@dandelg88
Forked from Klerith/docker-compose.yml
Created October 14, 2024 21:20
Show Gist options
  • Select an option

  • Save dandelg88/cd396cad9656024f12c01b8524b5d9e5 to your computer and use it in GitHub Desktop.

Select an option

Save dandelg88/cd396cad9656024f12c01b8524b5d9e5 to your computer and use it in GitHub Desktop.

Revisions

  1. @Klerith Klerith created this gist May 18, 2024.
    24 changes: 24 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    services:
    db:
    container_name: postgres_database
    image: postgres:16.3
    volumes:
    - ./postgres:/var/lib/postgresql/data
    environment:
    - POSTGRES_PASSWORD=123456
    restart: always
    ports:
    - "5432:5432"

    pgAdmin:
    depends_on:
    - db
    image: dpage/pgadmin4:8.6
    volumes:
    - ./pgadmin:/var/lib/pgadmin
    ports:
    - "8080:80"
    environment:
    - PGADMIN_DEFAULT_PASSWORD=123456
    - [email protected]
    restart: always