Created
June 15, 2022 03:59
-
-
Save twyle/82468e39d66499a329793900a7a6337b to your computer and use it in GitHub Desktop.
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' | |
services: | |
test-db: | |
image: postgres | |
container_name: test_db | |
restart: always | |
environment: | |
POSTGRES_HOST: localhost | |
POSTGRES_DB: lyle | |
POSTGRES_PORT: 5432 | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: lyle | |
ports: | |
- 5433:5432 | |
dev-db: | |
image: postgres | |
container_name: dev_db | |
restart: always | |
volumes: | |
- postgres_data:/var/lib/postgresql/data/ | |
environment: | |
POSTGRES_HOST: localhost | |
POSTGRES_DB: lyle | |
POSTGRES_PORT: 5432 | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: lyle | |
ports: | |
- 5434:5432 | |
volumes: | |
postgres_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment