-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
118 lines (109 loc) · 2.99 KB
/
docker-compose.yml
File metadata and controls
118 lines (109 loc) · 2.99 KB
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
version: "2"
services:
php-fpm:
image: lordius/alpine-php_fpm
links:
- mailhog
- mysql
- memcached
depends_on:
- mailhog
- mysql
- memcached
volumes:
- ./crontasks.txt:/home/crontasks.txt
- ./htdocs:/var/www/localhost/htdocs
environment:
DRUSH_VERSION: 8.x
PHP_SHOW_ERRORS: 1
CRONTAB_ENABLED: 0
PHP_FPM_PORT: 7000
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -i -t
PHP_SENDMAIL_HOST: mailhog
PHP_SENDMAIL_PORT: 1025
PHP_XDEBUG_ENABLED: 1
PHP_XDEBUG_PORT: 8010
PHP_MAX_EXECUTION_TIME: 250
PHP_UPLOAD_MAX_FILESIZE: 1024M
PHP_POST_MAX_SIZE: 756M
PHP_ALLOW_URL_FOPEN: "On"
PHP_MEMORY_LIMIT: 1024M
networks:
- internal
extra_hosts:
- "local.dockerhost:172.55.0.2"
- "adminer.dockerhost:172.55.0.5"
- "mailhog.dockerhost:172.55.0.6"
- "mysql.dockerhost:172.55.0.3"
- "memcached.dockerhost:172.55.0.4"
apache2_mpm:
image: lordius/alpine-apache
links:
- php-fpm
depends_on:
- php-fpm
volumes_from:
- php-fpm
environment:
DOCUMENT_ROOT: /var/www/localhost/htdocs
PROXY_PASS: fcgi://php-fpm:7000/var/www/localhost/htdocs
APACHE_LISTEN_PORT: 80
networks:
internal:
shared:
ipv4_address: 172.55.0.2
mailhog:
image: lordius/alpine-mailhog
networks:
internal:
shared:
ipv4_address: 172.55.0.6
# Database images.
mysql:
image: mariadb:10.0
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: toor
MYSQL_USER: test
MYSQL_PASSWORD: toor
MYSQL_DATABASE: test
# command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci # The simple way to override the mariadb config.
networks:
internal:
shared:
ipv4_address: 172.55.0.3
# DB managers.
adminer:
image: adminer
links:
- mysql
depends_on:
- mysql
restart: always
networks:
internal:
shared:
ipv4_address: 172.55.0.5
# Cache-memory images.
memcached:
image: memcached
networks:
internal:
shared:
ipv4_address: 172.55.0.4
networks:
internal:
driver_opts:
internal: "true"
driver: bridge
shared:
driver_opts:
enable_ipv6: "true"
driver: bridge
ipam:
config:
- subnet: 172.55.0.0/16
gateway: 172.55.0.1
volumes:
db_data: