Skip to content

Instantly share code, notes, and snippets.

@surrealchemist
Created March 21, 2019 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save surrealchemist/88424c2d26307cb07c9fe0681468d93d to your computer and use it in GitHub Desktop.
Save surrealchemist/88424c2d26307cb07c9fe0681468d93d to your computer and use it in GitHub Desktop.
version: '3'
services:
drupal-data:
build: .
image: drupal-data:latest
volumes:
- data-volume:/var/www/html/
- nginx-config:/etc/nginx/conf.d/
nginx:
image: nginx:alpine
depends_on:
- drupal-data
- phpfpm
ports:
- "80:80"
links:
- phpfpm
volumes:
- data-volume:/var/www/html/
- nginx-config:/etc/nginx/conf.d/
phpfpm:
build: docker-files/php/
image: drupal-php:latest
depends_on:
- drupal-data
ports:
- "9000:9000"
volumes:
- data-volume:/var/www/html/
volumes:
data-volume:
nginx-config:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment