-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-mac.yml
147 lines (135 loc) · 4.24 KB
/
docker-compose-mac.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: "2"
services:
mariadb:
image: wodby/mariadb:10.1-2.1.0
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
volumes:
- ./sqldump:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
- ./docker-runtime/mariadb:/var/lib/mysql # I want to manage volumes manually.
php:
# 1. Images with vanilla Drupal – wodby/drupal:[DRUPAL_VERSION]-[PHP_VERSION]-[STABILITY_TAG].
# image: wodby/drupal:8-7.1-2.1.2
# image: wodby/drupal:8-7.0-2.1.2
# image: wodby/drupal:7-7.1-2.1.2
# image: wodby/drupal:7-7.0-2.1.2
# image: wodby/drupal:7-5.6-2.1.2
# image: wodby/drupal:6-5.6-2.1.2
# image: wodby/drupal:6-5.3-2.1.2
# 2. Images without Drupal – wodby/drupal-php:[PHP_VERSION]-[STABILITY_TAG].
# image: wodby/drupal-php:7.1-2.1.0
image: wodby/drupal-php:7.0-2.1.0
# image: wodby/drupal-php:5.6-2.1.0
# image: wodby/drupal-php:5.3-2.1.0
environment:
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
DB_HOST: mariadb
DB_USER: drupal
DB_PASSWORD: drupal
DB_NAME: drupal
DB_DRIVER: mysql
PHP_XDEBUG: 1
PHP_XDEBUG_DEFAULT_ENABLE: 1
PHP_XDEBUG_REMOTE_CONNECT_BACK: 0 # This is needed to respect remote.host setting bellow
PHP_XDEBUG_REMOTE_HOST: "10.254.254.254" # You will also need to 'sudo ifconfig lo0 alias 10.254.254.254'
volumes:
# - ./docroot/:/var/www/html
- codebase:/var/www/html
nginx:
# wodby/drupal-nginx:[DRUPAL_VERSION]-[NGINX_VERSION]-[STABILITY_TAG].
image: wodby/drupal-nginx:8-1.10-2.1.0
# image: wodby/drupal-nginx:7-1.10-2.1.0
# image: wodby/drupal-nginx:6-1.10-2.1.0
depends_on:
- php
environment:
NGINX_SERVER_NAME: panels_d8
NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: "off"
NGINX_ERROR_LOG_LEVEL: debug
NGINX_BACKEND_HOST: php
NGINX_SERVER_ROOT: /var/www/html
volumes:
# - ./docroot/:/var/www/html
- codebase:/var/www/html
labels:
- 'traefik.backend=nginx'
- 'traefik.port=80'
- 'traefik.frontend.rule=Host:panels_d8.docker.localhost'
ports:
- '2877:80'
# varnish:
# image: wodby/drupal-varnish:4.1-2.1.0
# depends_on:
# - nginx
# environment:
# VARNISH_SECRET: secret
# VARNISH_BACKEND_HOST: nginx
# VARNISH_BACKEND_PORT: 80
# labels:
# - 'traefik.backend=varnish'
# - 'traefik.port=6081'
# - 'traefik.frontend.rule=Host:varnish.panels_d8.docker.localhost'
# redis:
# image: wodby/redis:3.2-2.1.0
pma:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: mariadb
PMA_USER: drupal
PMA_PASSWORD: drupal
PHP_UPLOAD_MAX_FILESIZE: 1G
PHP_MAX_INPUT_VARS: 1G
labels:
- 'traefik.backend=pma'
- 'traefik.port=80'
- 'traefik.frontend.rule=Host:pma.panels_d8.docker.localhost'
ports:
- '2878:80'
# solr:
## wodby/drupal-solr:[DRUPAL_VERSION]-[SOLR_VERSION]-[STABILITY_TAG].
# image: wodby/drupal-solr:8-6.4-2.0.0
## image: wodby/drupal-solr:8-6.3-2.0.0
## image: wodby/drupal-solr:8-5.5-2.0.0
## image: wodby/drupal-solr:7-6.4-2.0.0
## image: wodby/drupal-solr:7-6.3-2.0.0
## image: wodby/drupal-solr:7-5.5-2.0.0
# environment:
# SOLR_HEAP: 1024m
# labels:
# - 'traefik.backend=solr'
# - 'traefik.port=8983'
# - 'traefik.frontend.rule=Host:solr.panels_d8.docker.localhost'
# mailhog:
# image: mailhog/mailhog
# labels:
# - 'traefik.backend=mailhog'
# - 'traefik.port=8025'
# - 'traefik.frontend.rule=Host:mailhog.panels_d8.docker.localhost'
# node:
# image: node:7-alpine
# working_dir: /app
# labels:
# - 'traefik.backend=node'
# - 'traefik.port=3000'
# - 'traefik.frontend.rule=Host:front.panels_d8.docker.localhost'
# expose:
# - "3000"
# volumes:
# - ./path/to/your/single-page-app:/app
# command: sh -c 'npm install && npm run start'
# memcached:
# image: wodby/memcached:1.4-2.0.0
traefik:
image: traefik
command: -c /dev/null --web --docker --logLevel=INFO
ports:
- '8877:80'
# - '8080:8080' # Dashboard
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
codebase:
external: true