-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
146 lines (133 loc) · 4.43 KB
/
docker-compose.yml
File metadata and controls
146 lines (133 loc) · 4.43 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
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
version: '2'
services:
#--------------------------------------
# Mail Testing
#--------------------------------------
imdock-mailhog:
image: phpdockerio/mailhog:latest
container_name: imdock-mailhog
hostname: imdock-mailhog
ports:
- "8025:8025"
- "1025:1025"
imdock-mailcatcher:
#restart: always
image: schickling/mailcatcher:latest
container_name: imdock-mailcatcher
hostname: imdock-mailcatcher
ports:
- "1080:1080"
- "1025:1025"
#--------------------------------------
# Cache
#--------------------------------------
imdock-redis:
#restart: always
image: redis:latest
container_name: imdock-redis
hostname: imdock-redis
volumes:
- redis-data:/data
#--------------------------------------
# Database
#--------------------------------------
imdock-mariadb:
#restart: always
image: mariadb:10.1
container_name: imdock-mariadb
hostname: imdock-mariadb
ports:
- "3307:3306"
environment:
- MYSQL_ROOT_PASSWORD=P@ssw0rd
- MYSQL_DATABASE=test
- MYSQL_USER=adminuser
- MYSQL_PASSWORD=P@ssw0rd
command: --character-set-server=utf8
--collation-server=utf8_unicode_ci
--connect-timeout=10
--max-connections=1000
--max-allowed-packet=32M
--thread-cache-size=300
--sort-buffer-size=4M
--bulk-insert-buffer-size=16M
--tmp-table-size=256M
--max-heap-table-size=2048M
--query-cache-limit=4M
--query-cache-size=64M
--query-cache-type=0
--long-query-time=10
--expire-logs-days=10
--max-binlog-size=100M
--innodb-buffer-pool-size=256M
--innodb-log-buffer-size=32M
--innodb-file-per-table=1
--innodb-open-files=400
--innodb-io-capacity=400
--innodb-flush-method=O_DIRECT
--sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
volumes:
- mariadb-data:/var/lib/mysql
- ./timezone/Taipei:/etc/localtime
- ../tmp:/imdock
imdock-mysql:
#restart: always
image: mysql:5.7
container_name: imdock-mysql
hostname: imdock-mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=P@ssw0rd
- MYSQL_DATABASE=test
- MYSQL_USER=adminuser
- MYSQL_PASSWORD=P@ssw0rd
command: --character-set-server=utf8
--collation-server=utf8_unicode_ci
--connect-timeout=10
--max-connections=1000
--max-allowed-packet=32M
--thread-cache-size=300
--sort-buffer-size=4M
--bulk-insert-buffer-size=16M
--tmp-table-size=256M
--max-heap-table-size=2048M
--query-cache-limit=4M
--query-cache-size=64M
--query-cache-type=0
--long-query-time=10
--expire-logs-days=10
--max-binlog-size=100M
--innodb-buffer-pool-size=256M
--innodb-log-buffer-size=32M
--innodb-file-per-table=1
--innodb-open-files=400
--innodb-io-capacity=400
--innodb-flush-method=O_DIRECT
--sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
volumes:
# - ../mysql:/var/lib/mysql
- mysql-data:/var/lib/mysql
- ./timezone/Taipei:/etc/localtime
- ../tmp:/imdock
imdock-postgres:
image: postgres:9.6
container_name: imdock-postgres
hostname: imdock-postgres
environment:
- POSTGRES_USER=adminuser
- POSTGRES_PASSWORD=P@ssw0rd
- POSTGRES_DB=P@ssw0rd
volumes:
mariadb-data:
driver: local
mysql-data:
driver: local
postgres-data:
driver: local
redis-data:
driver: local
networks:
default:
external:
name: imdockgroup