Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "2"
- services:
- server:
- build: ./path/to/server
- ports:
- - 3003:3003
- command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; npm start'
- depends_on:
- - db
- environment:
- - PORT=3003
- volumes:
- - client:/client
- db:
- image: postgres
- environment:
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=password
- - POSTGRES_DB=example
- volumes:
- - data:/var/lib/postgresql/data
- volumes:
- data: {}
- client: {}
Add Comment
Please, Sign In to add comment