Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.3"
- services:
- php:
- image: php:7.1-apache #7.1.x-apache-latest
- depends_on:
- - db
- volumes:
- - type: bind
- source: /var/sources
- target: /var/www/html
- ports:
- - target: 80
- published: 80
- protocol: tcp
- mode: host
- db:
- image: mariadb:10 #10.x latest
- volumes:
- - type: bind
- source: /var/vm/db
- target: /var/lib/mysql
- environment:
- MYSQL_ROOT_PASSWORD: ROOTPW
- MYSQL_USER: test
- MYSQL_PASSWORD: TESTPW
- ports:
- - target: 3306
- published: 3306
- protocol: tcp
- mode: host
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement