Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- web:
- build: ./web
- ports:
- - 80:80
- links:
- - mysql:mysql_host
- # Volumes is a list of /path/on/host:/path/on/docker
- # Where the first path is the path on the composer
- volumes:
- - /home/myname/projekt:/var/www
- mysql:
- image: mysql/mysql-server
- ports:
- - 3306:3306
- environment:
- MYSQL_ROOT_PASSWORD: password
- MYSQL_DATABASE: db_name
- MYSQL_USER: db_usr
- MYSQL_PASSWORD: db_pwd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement