Last active
March 4, 2017 00:14
-
-
Save gilankpam/046208d71f706b2946d5801e0d766cc3 to your computer and use it in GitHub Desktop.
Docker Compose php
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: '2' | |
services: | |
web: | |
# build image dari Dockerfile dalam directory yang sama | |
build: . | |
ports: | |
# {host}:{docker} | |
- 9090:8080 | |
volumes: | |
# mount semua source code project ke directory /app pada docker container | |
# https://docs.docker.com/engine/tutorials/dockervolumes/#mount-a-host-directory-as-a-data-volume | |
- .:/app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment