emile.space r2wa.rs
tag: files

1. Postgres Docker-Compose

This is a basic dockerfile for quickly setting up a postgres database and pgadmin4.

Make sure to change the passwords!

docker-compose.yml

version: "3"

services: postgres: image: postgres:12.1 hostname: postgres ports:

environment: POSTGRES_USER: CHANGEME POSTGRES_PASSWORD: CHANGEME volumes:

networks:

restart: unless-stopped

pgadmin: image: dpage/pgadmin4 ports:

environment: PGADMIN_DEFAULT_EMAIL: CHANGEME PGADMIN_DEFAULT_PASSWORD: CHANGEME restart: unless-stopped networks:

volumes: postgres_volume: {}

networks: database: