Last active
March 18, 2019 05:43
-
-
Save sairamkrish/5109d043379e6e4edc2c20c6fcb14ba4 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: | |
postgres: | |
image: postgres:11.2-alpine | |
environment: | |
POSTGRES_PASSWORD: '!abcd1234' | |
POSTGRES_USER: purplecow | |
POSTGRES_DB: purple_cow | |
volumes: | |
- ./postgres-data:/var/lib/postgresql/data | |
ports: | |
- "5432:5432" | |
web: | |
build: . | |
depends_on: | |
- postgres | |
ports: | |
- "3000:3000" | |
environment: | |
DATABASE_URL: postgres://purplecow@postgres:5432/purple_cow | |
restart: on-failure | |
command: ["./scripts/wait-for-it.sh","postgres:5432","--", "yarn", "start"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment