Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "2"
- services:
- myappserver:
- image: "ubuntu:16.04"
- container_name: myappserver
- volumes:
- - "./bin/:/usr/local/bin/:ro"
- depends_on:
- - postgres
- - redis
- ports:
- - "9900:9900"
- command: tail -f /dev/null
- postgres:
- image: "postgres:9.5-alpine"
- container_name: postgres
- ports:
- - "5433:5432"
- volumes:
- - "./dev-files/sql/:/docker-entrypoint-initdb.d/"
- environment:
- POSTGRES_USER: myappuser
- POSTGRES_PASSWORD: password
- POSTGRES_DB: myapp
- redis:
- image: "redis:3.0-alpine"
- container_name: redis
- ports:
- - "6380:6379"
Add Comment
Please, Sign In to add comment