diff --git a/postgres-compose.yml b/postgres-compose.yml new file mode 100644 index 0000000..705cf03 --- /dev/null +++ b/postgres-compose.yml @@ -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: \ No newline at end of file