Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_PORT=5432
[email protected]
PGADMIN_DEFAULT_PASSWORD=admin
PGADMIN_PORT=5050
7 changes: 3 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
version: '3.5'

services:
postgres:
container_name: postgres_container
container_name: postgresdb
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
Expand All @@ -11,13 +10,13 @@ services:
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
- "${POSTGRES_PORT:-5432}:5432"
networks:
- postgres
restart: unless-stopped

pgadmin:
container_name: pgadmin_container
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
Expand Down