Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- nginx:
- build:
- context: ./
- dockerfile: ./resources/nginx/nginx.dockerfile
- volumes:
- - ./:/var/www/html
- - ./resources/nginx/default.conf:/etc/nginx/conf.d/default.conf
- links:
- - phpserver
- ports:
- - "80:80"
- - "443:443"
- phpserver:
- build:
- context: ./
- dockerfile: ./resources/php/phpserver.dockerfile
- volumes:
- - ./:/var/www/html
- environment:
- TERM: xterm
- db:
- image: mysql
- ports:
- - "3306:3306"
- environment:
- MYSQL_ROOT_PASSWORD: password
- MYSQL_DATABASE: dbname
- MYSQL_USER: user
- MYSQL_PASSWORD: password
- volumes:
- - /var/lib/mysql
- # sql and dump files placed here will be executed when the container starts (or is built?)
- - ./resources/mysql/sql:/docker-entrypoint-initdb.d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement