Skip to content

Instantly share code, notes, and snippets.

@sergixnet
Last active May 7, 2018 19:41
Show Gist options
  • Save sergixnet/c74e21b15689873d89e9efc93024a882 to your computer and use it in GitHub Desktop.
Save sergixnet/c74e21b15689873d89e9efc93024a882 to your computer and use it in GitHub Desktop.
compose-assigment-2
version: '2'
services:
drupal:
image: custom-drupal
build: .
ports:
- "8080:80"
volumes:
- drupal-modules:/var/www/html/modules
- drupal-profiles:/var/www/html/profiles
- drupal-sites:/var/www/html/sites
- drupal-themes:/var/www/html/themes
postgres:
image: postgres:9.6
environment:
- POSTGRES_PASSWORD=mypasswd
volumes:
- drupal-data:/var/lib/postgresql/data
volumes:
drupal-modules:
drupal-profiles:
drupal-sites:
drupal-themes:
drupal-data:
version: '2'
services:
drupal:
image: custom-drupal
build: .
ports:
- "8080:80"
volumes:
- drupal-modules:/var/www/html/modules
- drupal-profiles:/var/www/html/profiles
- drupal-sites:/var/www/html/sites
- drupal-themes:/var/www/html/themes
postgres:
image: postgres:9.6
environment:
- POSTGRES_PASSWORD=mypasswd
volumes:
- drupal-data:/var/lib/postgresql/data
volumes:
drupal-modules:
drupal-profiles:
drupal-sites:
drupal-themes:
drupal-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment