Created
April 10, 2019 19:57
-
-
Save eklect/7ad8e16ee114de229e40401a94d8e19f to your computer and use it in GitHub Desktop.
Docker -> Example docker-compose.yml file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
devbox: | |
build: | |
context: ./ | |
dockerfile: DevBox.DockerFile | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- /path/of/my/local/filesystem:/path/to/mount/into/containers/filesystem | |
devmysql: | |
build: | |
context: ./ | |
dockerfile: MySQLDev.DockerFile | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: '' | |
MYSQL_ALLOW_EMPTY_PASSWORD : 'yes' | |
restart: always | |
volumes: | |
- /database/path/of/my/local/filesystem:/database/path/to/mount/into/containers/filesystem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment