added postgres-compose
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
container_name: postgresdb
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TZ: America/Chicago
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PWD}
|
||||
POSTGRES_DB: default # The PostgreSQL default database (automatically created at first launch)
|
||||
ports:
|
||||
- "5433:5432"
|
||||
volumes:
|
||||
- /srv/docker/office/postgresdb:/var/lib/postgresql
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4
|
||||
container_name: pgadmin
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_USER}
|
||||
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PWD}
|
||||
ports:
|
||||
- 5434:80
|
||||
depends_on:
|
||||
- postgres
|
||||
volumes:
|
||||
- pgadmin:/var/lib/pgadmin
|
||||
|
||||
volumes:
|
||||
pgadmin:
|
||||
Reference in New Issue
Block a user