Created
December 23, 2020 11:44
-
-
Save outragedpinkracoon/300f74fb6232b4893b5db988f8e0dfb1 to your computer and use it in GitHub Desktop.
Docker Compose For Postgres With Rails
This file contains 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.7" | |
services: | |
db: | |
image: "postgres:12.4" | |
container_name: "my_postgres_container" | |
environment: | |
POSTGRES_PASSWORD: "mypasswordhere" | |
ports: | |
- "5432:5432" | |
volumes: | |
- my_dbdata:/var/lib/postgresql/data | |
volumes: | |
my_dbdata: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment