Skip to content

Instantly share code, notes, and snippets.

@Steve-Reid
Created April 14, 2022 09:45
Show Gist options
  • Select an option

  • Save Steve-Reid/a64e7348d162a2433fdea82d553a8ad6 to your computer and use it in GitHub Desktop.

Select an option

Save Steve-Reid/a64e7348d162a2433fdea82d553a8ad6 to your computer and use it in GitHub Desktop.
Docker YAML for a Postgres database
version: '3.8'
services:
dev-db:
image: postgres:13
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123
POSTGRES_DB: dev
networks:
- freecodecamp
test-db:
image: postgres:13
ports:
- 5433:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123
POSTGRES_DB: test
networks:
- freecodecamp
networks:
freecodecamp:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment