Skip to content

Instantly share code, notes, and snippets.

@furan917
Created October 18, 2019 23:03
Show Gist options
  • Save furan917/2351189735da9d660540935a3e59755e to your computer and use it in GitHub Desktop.
Save furan917/2351189735da9d660540935a3e59755e to your computer and use it in GitHub Desktop.
Volume Binding
version: '3'
services:
nginx:
image: nginx
volumes:
- project-one-volume:/var/www/project-one
php:
image: php:7.2-fpm
volumes:
- project-one-volume:/var/www/project-one
#project-one is built from alpine, uses dockerfile to copy or git pull in files it needs on first run
project-one:
build: .
volumes:
- project-one-volume:/var/www
volumes:
project-one-volume:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment