Created
April 14, 2022 09:45
-
-
Save Steve-Reid/a64e7348d162a2433fdea82d553a8ad6 to your computer and use it in GitHub Desktop.
Docker YAML for a Postgres database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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