Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- nginx:
- build: ./nginx
- ports:
- - "80:80"
- volumes:
- - ./application:/usr/share/nginx/html
- networks:
- - net-dev
- php:
- build: ./php
- volumes_from:
- - nginx
- networks:
- - net-dev
- mysql:
- image: mysql:5.7
- ports:
- - "3306:3306"
- environment:
- MYSQL_ROOT_PASSWORD: root
- MYSQL_DATABASE: testdb
- MYSQL_USER: testuser
- MYSQL_PASSWORD: testpass
- volumes:
- - mysqldata:/var/lib/mysql
- networks:
- - net-dev
- networks:
- net-dev:
- driver: "bridge"
- volumes:
- mysqldata:
- driver: "local"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement