Skip to content

Instantly share code, notes, and snippets.

@tekante
Created June 5, 2017 12:53
Show Gist options
  • Save tekante/eb252bb4eb8b519aa076470b7edcaecc to your computer and use it in GitHub Desktop.
Save tekante/eb252bb4eb8b519aa076470b7edcaecc to your computer and use it in GitHub Desktop.
Adding a local mount option for devcloud
version: '2.1'
services:
# Main Application service.
www:
container_name: vtest
image: outrigger/apache-php:php70
network_mode: "bridge"
environment:
DOCROOT: /var/www/html
PHP_MAX_EXECUTION_TIME: 60
PHP_XDEBUG: "true"
PHP_XHPROF: "true"
# Include the DOCKER_ENV so Drupal settings can be aware of environment.
DOCKER_ENV: ${DOCKER_ENV:-local}
# This is used by the nginx-proxy service which is part of Phase2's Outrigger Cloud hosting.
# Outrigger Cloud as a hosting platform is still for Phase2 internal use only.
VIRTUAL_HOST: www-${DOCKER_ENV}-vtest.ci.p2devcloud.com
volumes:
- vtest-sync:/var/www/html
labels:
com.dnsdock.name: www
com.dnsdock.image: vtest
outrigger.project: vtest
volumes:
vtest-sync:
external: true
Yes, it works without unison
version: '2.1'
##
# Define volume mapping for devcloud use so that unison is not needed
##
volumes:
vtest-sync:
driver_opts:
type: local
device: $PWD
o: bind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment