Skip to content

Instantly share code, notes, and snippets.

@alexandre-jacquot-ptl
Created May 17, 2021 14:34
Show Gist options
  • Save alexandre-jacquot-ptl/a67c6af96c1957c3980d37a2eeae589e to your computer and use it in GitHub Desktop.
Save alexandre-jacquot-ptl/a67c6af96c1957c3980d37a2eeae589e to your computer and use it in GitHub Desktop.
r2dbc - docker compose
version: "3.5"
services:
postgres:
container_name: postgres
image: postgres:13.2
restart: always
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_DB=todolist
ports:
- "5432:5432"
volumes:
- postgres_data:/data/db
pgadmin:
container_name: pgadmin4
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: password
ports:
- "5050:80"
volumes:
- pgadmin_data:/data/pgadmin
volumes:
postgres_data:
pgadmin_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment