Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- medo-server:
- image: xxxxxxxxxx.dkr.ecr.region.amazonaws.com/server
- cpu_shares: 100
- ports:
- - 3003:3003
- command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; npm start'
- links:
- - db
- environment:
- - PORT=3003
- volumes:
- - client:/client
- db:
- image: postgres
- cpu_shares: 100
- 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