mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
Adding postgreSQL / pgAdmin example
Signed-off-by: Leon Stoldt <tech@leon-stoldt.de>
This commit is contained in:
parent
acf94458dc
commit
1fd4ba878d
4 changed files with 96 additions and 0 deletions
22
postgresql-pgadmin/docker-compose.yaml
Normal file
22
postgresql-pgadmin/docker-compose.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
version: '3.7'
|
||||
services:
|
||||
postgres:
|
||||
container_name: postgres
|
||||
image: postgres:latest
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PW}
|
||||
- POSTGRES_DB=${POSTGRES_DB} #optional (specify default database instead of $POSTGRES_USER)
|
||||
ports:
|
||||
- "5432:5432"
|
||||
restart: always
|
||||
|
||||
pgadmin:
|
||||
container_name: pgadmin
|
||||
image: dpage/pgadmin4:latest
|
||||
environment:
|
||||
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_MAIL}
|
||||
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PW}
|
||||
ports:
|
||||
- "5050:80"
|
||||
restart: always
|
Loading…
Add table
Add a link
Reference in a new issue