This repository has been archived by the owner on Dec 3, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.override.yml
112 lines (102 loc) · 3.94 KB
/
docker-compose.override.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
# This file will be load at executing "docker-compose up".
# The setting is for the development environment.
# @see https://docs.docker.com/compose/extends/
version: '3.8'
services:
db:
volumes:
# override mysql config if necessary.
- ./mysql/server.cnf:/etc/mysql/conf.d/server.cnf
# It is also possible to save mysql files to on host filesystem.
# - ./volumes/mysql:/var/lib/mysql
# If /docker-entrypoint-initdb.d/*.sql.gz is exists at generating the container,
# it will be loaded by mariadb and will restore only once.
# - ./initdb.sql.gz:/docker-entrypoint-initdb.d/initdb.sql.gz
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
ports:
- "3306:3306"
php:
volumes:
# put your drupal source code and mount as volume.
- ./volumes/drupal:/var/www/html:cached
# Replace volume to this to use docker-sync for mac OS users to resolve performance issue.
# See also: https://github.com/docker/for-mac/issues/77
# - drupal_source:/var/www/html:rw
# allocate large memory_limit for drush.
- ./php/php/php.ini:/usr/local/etc/php/php.ini
# override php-fpm config to use xdebug with port 9000.
- ./php/php-fpm/www.conf:/usr/local/etc/php-fpm.d/www.conf
- ./php/php-fpm/zz-docker.conf:/usr/local/etc/php-fpm.d/zz-docker.conf
# override sendmail_path to use mailhog
- ./php/php-fpm/sendmail_path.conf:/usr/local/etc/php-fpm.d/sendmail_path.conf
# use your host's ssh key, drushrc
# - ~/.ssh/id_rsa:/root/.ssh/id_rsa:ro
# - ~/.drush/aliases.drushrc.php:/root/.drush/aliases.drushrc.php:ro
# for apache image
#php:
# volumes:
# # put your drupal source code and mount as volume.
# - ./volumes/drupal:/var/www/html:cached
# # Replace volume to this to use docker-sync for mac OS users to resolve performance issue.
# # See also: https://github.com/docker/for-mac/issues/77
# # - drupal_source:/var/www/html:rw
# - ./apache2/php/php.ini:/usr/local/etc/php/php.ini
# - ./apache2/apache2/default.conf:/etc/apache2/sites-available/000-default.conf
# #- ./apache2/apache2/default_for_drupal_composer.conf:/etc/apache2/sites-available/000-default.conf
# # use your host's ssh key, drushrc
# #- ~/.ssh/id_rsa:/root/.ssh/id_rsa:ro
# #- ~/.drush/aliases.drushrc.php:/root/.drush/aliases.drushrc.php:ro
# #- ~/.drush/drushrc.php:/root/.drush/drushrc.php:ro
# ports:
# - "80:80"
web:
environment:
VIRTUAL_HOST: localhost
volumes:
# put your drupal source code and mount as volume.
- ./volumes/drupal:/var/www/html:cached
# Replace volume to this to use docker-sync for mac OS users to resolve performance issue.
# See also: https://github.com/docker/for-mac/issues/77
# - drupal_source:/var/www/html:rw
# override nginx config to execute drupal through the php container.
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
#- ./nginx/default_for_drupal_composer.conf:/etc/nginx/conf.d/default.conf
- ./nginx/override_for_development.conf:/etc/nginx/conf.d/override_for_development.conf
nginx-proxy:
image: jwilder/nginx-proxy:latest
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx-proxy/override_for_development.conf:/etc/nginx/conf.d/override_for_development.conf
ports:
- "80:80"
mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_ARBITRARY: 1
PMA_HOST: db
PMA_USER: root
PMA_PASSWORD: root
PMA_PORT: 3306
links:
- db
volumes:
- ./phpmyadmin/php-fpm.conf:/etc/php-fpm.conf
ports:
- 8080:80
dozzle:
image: amir20/dozzle
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 8081:8080
#volumes:
# drupal_source:
# external: true