-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.development-reverse-proxy.yml
123 lines (115 loc) · 3.1 KB
/
docker-compose.development-reverse-proxy.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
version: '3.7'
services:
#######################################
# PHP application Docker container
#######################################
app:
build:
context: .
dockerfile: Dockerfile.development
volumes:
- ./app/:/app/
- ./:/docker/
# cap and privileged needed for slowlog
cap_add:
- SYS_PTRACE
privileged: true
env_file:
- app/.env
environment:
- VIRTUAL_HOST=.mywebsitedomain.docker
- VIRTUAL_PORT=80
- POSTFIX_RELAYHOST=[mail]:1025
- PHP_DEBUGGER=xdebug
- php.date.timezone=Europe/Vienna
- fpm.global.error_log=/app/var/log/fpm-error.log
- fpm.global.log_level=debug
- fpm.pool.clear_env=no
- fpm.pool.request_slowlog_timeout=3s
- fpm.pool.slowlog=/app/var/log/fpm-slow.log
- fpm.pool.catch_workers_output=no
- fpm.pool.access.log=/app/var/log/fpm-access.log
- fpm.pool.access.format="\"%m %r%Q%q\" %s %f, %{mili}d ms, %{kilo}M kb, %C"
#######################################
# MySQL server
#######################################
mysql:
build:
context: docker/mysql/
dockerfile: MySQL-5.7.Dockerfile
#ports:
# - 13306:3306
volumes:
- "./app/var/log/mysql:/var/log/mysql"
- "./backup:/backup"
- mysql:/var/lib/mysql
env_file:
- app/.env
#######################################
# Solr server
#######################################
solr:
image: "solr:8.2"
env_file: "app/.env"
environment:
- "SOLR_HEAP=512m"
- "SOLR_JAVA_MEM=-Xms128m -Xmx512m"
- "VIRTUAL_HOST=solr.mywebsitedomain.docker"
- "VIRTUAL_PORT=8983"
volumes:
- "./docker/solr:/var/solr/data"
ulimits:
memlock:
soft: -1
hard: -1
#######################################
# Redis
#######################################
redis:
image: "redis:5.0"
entrypoint: "/usr/local/bin/redis-server"
command: "/etc/redis.conf"
env_file: "app/.env"
init: true
working_dir: "/app"
volumes:
- "./docker/redis/redis.conf:/etc/redis.conf:ro"
#######################################
# Redis Admin
#######################################
redisadmin:
image: erikdubbelboer/phpredisadmin
environment:
- VIRTUAL_HOST=redis.mywebsitedomain.docker
- VIRTUAL_PORT=80
- REDIS_1_HOST=redis
- REDIS_1_NAME=redis.mywebsitedomain.docker
- REDIS_1_PORT=6379
#######################################
# Mail
#######################################
# Mailhog
mail:
image: mailhog/mailhog
environment:
- VIRTUAL_HOST=mail.mywebsitedomain.docker
- VIRTUAL_PORT=8025
#######################################
# phpMyAdmin
#######################################
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- mysql
environment:
- PMA_HOSTS=mysql
- PMA_USER=root
- PMA_PASSWORD=dev
- PMA_ABSOLUTE_URI=http://pma.mywebsitedomain.docker
- VIRTUAL_HOST=pma.mywebsitedomain.docker
- VIRTUAL_PORT=80
volumes:
- phpmyadmin:/sessions
volumes:
mysql:
phpmyadmin: