Skip to content

Commit

Permalink
docker compose for pg and pgadmin --part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjianjx committed Aug 28, 2021
1 parent a7c8b0e commit 2ec7eb9
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: '3.5'

services:
postgres:
container_name: postgres_container
image: postgres
environment:
POSTGRES_USER: dpp
POSTGRES_PASSWORD: dpp
POSTGRES_DB: dpp
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "21085:5432"
networks:
- postgres

pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: dpp
PGADMIN_CONFIG_SERVER_MODE: 'False'
volumes:
- pgadmin:/var/lib/pgadmin
- ./docker/pgadmin-servers.json:/pgadmin4/servers.json
ports:
- "21086:80"
networks:
- postgres


networks:
postgres:
driver: bridge

volumes:
postgres:
pgadmin:

0 comments on commit 2ec7eb9

Please sign in to comment.