Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- code:
- image: tianon/true
- volumes:
- - ./:/app
- web:
- image: michaelbunch/nginx:1.13
- volumes_from:
- - code
- links:
- - app
- ports:
- - "8000:80"
- app:
- image: michaelbunch/php:fpm-7.1
- volumes_from:
- - code
- ports:
- - "9000"
- links:
- - db
- - redis
- db:
- image: mysql:5.7
- environment:
- MYSQL_DATABASE: webapp
- MYSQL_USER: webapp
- MYSQL_PASSWORD: secret
- MYSQL_ROOT_PASSWORD: secret
- ports:
- - "3306"
- redis:
- image: redis:4.0-alpine
- ports:
- - "6379"
Add Comment
Please, Sign In to add comment