-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
40 lines (36 loc) · 1009 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: "2"
services:
php:
image: wodby/drupal-php:7.1-2.0.0
environment:
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
PHP_XDEBUG: 1
PHP_XDEBUG_DEFAULT_ENABLE: 1
PHP_XDEBUG_REMOTE_AUTOSTART: 1
volumes:
- ./web:/var/www/html
- ./vendor:/var/www/vendor
- ./src:/var/www/src
- ./templates:/var/www/templates
- ./analytics:/var/www/analytics
nginx:
image: wodby/drupal-nginx:8-1.10-2.0.0
environment:
NGINX_BACKEND_HOST: php
NGINX_SERVER_ROOT: /var/www/html/
volumes:
- ./web:/var/www/html
labels:
- 'traefik.backend=nginx'
- 'traefik.port=80'
# add this url to your hosts file
- 'traefik.frontend.rule=Host:kickstart-backend.localhost'
traefik:
image: traefik
restart: unless-stopped
command: -c /dev/null --web --docker --logLevel=INFO
ports:
- '8989:80'
- '8888:8080'
volumes:
- /var/run/docker.sock:/var/run/docker.sock