Created
November 6, 2015 14:20
-
-
Save tuki0918/fb355e876807ea18b2de to your computer and use it in GitHub Desktop.
This file contains hidden or 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
web: | |
build: ./docker/php | |
ports: | |
- "8080:80" | |
volumes: | |
- ./src:/var/www/html | |
links: | |
- db:db | |
environment: | |
APP_ENV: dev | |
container_name: docker-web | |
db: | |
image: mysql | |
ports: | |
- ":3306" | |
volumes: | |
- ./docker/mysql/conf.d:/etc/mysql/conf.d | |
environment: | |
MYSQL_USER: user | |
MYSQL_PASSWORD: pass | |
MYSQL_ROOT_PASSWORD: secret | |
MYSQL_DATABASE: myapp | |
container_name: docker-db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Docker Compose
Docker Compose Install
※ VERSION_NUMでハマった...。
Overview of Docker Compose
参考