Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- web:
- build:
- context: ./
- dockerfile: deploy/web.docker
- volumes:
- - ./:/var/www
- ports:
- - "8080:80"
- links:
- - app
- app:
- build:
- context: ./
- dockerfile: deploy/app.docker
- volumes:
- - ./:/var/www
- links:
- - database
- - cache
- environment:
- - "DB_PORT=3306"
- - "DB_HOST=database"
- - "REDIS_PORT=6379"
- - "REDIS_HOST=cache"
- database:
- image: mysql:5.7
- environment:
- - "MYSQL_ROOT_PASSWORD=secret"
- - "MYSQL_DATABASE=superadmin2"
- - "MYSQL_USER=super"
- - "MYSQL_PASSWORD=admin"
- ports:
- - "33061:3306"
- cache:
- image: redis:3.0
- ports:
- - "63791:6379"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement