Browse Source

add postgres

master
Jared Smith 3 years ago
parent
commit
460a4d6023
  1. 4
      postgres/.env
  2. 28
      postgres/docker-compose.yml

4
postgres/.env

@ -0,0 +1,4 @@
DB_USER=dev
DB_PASSWORD=Sprite-Marmalade-Freight-Immunize
ADMIN_USER=admin@jaredtsmith.com
ADMIN_PASSWORD=QV^dT9XXgiUM

28
postgres/docker-compose.yml

@ -0,0 +1,28 @@
version: "3.7"
services:
db:
image: postgres:latest
restart: always
environment:
POSTGRES_DB: postgres
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
PGDATA: /var/lib/postgresql/data
volumes:
- /var/postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
pgadmin:
image: tobi312/pgadmin4:latest
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${ADMIN_USER}
PGADMIN_DEFAULT_PASSWORD: ${ADMIN_PASSWORD}
PGADMIN_LISTEN_PORT: 80
ports:
- "8081:80"
volumes:
- /var/pgadmin-data:/var/lib/pgadmin
links:
- "db:pgsql-server"
Loading…
Cancel
Save