Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"]
Add Comment
Please, Sign In to add comment