-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
151 lines (144 loc) · 3.45 KB
/
docker-compose.yml
File metadata and controls
151 lines (144 loc) · 3.45 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
147
148
149
150
151
services:
mysql:
image: mysql:8.4
platform: ${RUN_PLATFORM}
restart: unless-stopped
volumes:
- mysql-data:/var/lib/mysql
- ./sql:/docker-entrypoint-initdb.d
environment:
MYSQL_RANDOM_ROOT_PASSWORD: yes
MYSQL_DATABASE: lbbs
MYSQL_USER: lbbs
MYSQL_PASSWORD: YjM2ZmRmODNmYmE
networks:
- app-network
mem_limit: 512M
command:
- --skip-performance-schema
- --innodb-buffer-pool-size=64M
- --max-connections=15
solr:
image: leafok/lbbs-solr:combo
platform: ${RUN_PLATFORM}
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile/dockerfile.solr
volumes:
- solr-data:/var/solr
environment:
SOLR_JAVA_MEM: "-Xms256m -Xmx512m"
command:
- solr-precreate
- lbbs
- /opt/solr/server/solr/configsets/lbbs
networks:
- app-network
mem_limit: 512M
apache:
image: leafok/lbbs-apache:combo
platform: ${RUN_PLATFORM}
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile/dockerfile.apache
ports:
- "8080:8081"
volumes:
- www-data:/var/www/html
- apache-logs:/usr/local/apache2/logs
depends_on:
- php
- solr
networks:
- app-network
php:
image: leafok/lbbs-php:combo
platform: ${RUN_PLATFORM}
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile/dockerfile.php
volumes:
- www-data:/var/www/html
- php-sessions:/var/lib/php/sessions
- apache-logs:/usr/local/apache2/logs
depends_on:
mysql:
condition: service_started
restart: true
networks:
- app-network
expose:
- "9000"
command: [ "php-fpm" ]
bbsd-prepare:
image: leafok/lbbs-bbsd:combo
platform: ${RUN_PLATFORM}
restart: on-failure
build:
context: .
dockerfile: Dockerfile/dockerfile.bbsd
volumes:
- bbsd-conf:/usr/local/lbbs/conf
- bbsd-data:/usr/local/lbbs/data
- bbsd-var:/usr/local/lbbs/var
- bbsd-log:/usr/local/lbbs/log
- bbsd-utils-conf:/usr/local/lbbs/utils/conf
depends_on:
mysql:
condition: service_started
restart: true
networks:
- app-network
command: [ "/bin/sh", "/usr/local/lbbs/bin/bbsd_prepare.sh" ]
bbsd:
image: leafok/lbbs-bbsd:combo
platform: ${RUN_PLATFORM}
restart: unless-stopped
shm_size: '4gb'
ports:
- "2322:2322"
- "2323:2323"
volumes:
- bbsd-conf:/usr/local/lbbs/conf
- bbsd-data:/usr/local/lbbs/data
- bbsd-var:/usr/local/lbbs/var
- bbsd-log:/usr/local/lbbs/log
- bbsd-utils-conf:/usr/local/lbbs/utils/conf
depends_on:
bbsd-prepare:
condition: service_completed_successfully
networks:
- app-network
command: [ "/usr/local/lbbs/bin/bbsd", "-f" ]
networks:
app-network:
driver: bridge
volumes:
mysql-data:
# Volume for persistent storage of mysql data
driver: local
solr-data:
# Volume for persistent storage of solr data
driver: local
www-data:
# Volume for persistent storage of web data
driver: local
php-sessions:
# Volume for persistent storage of PHP session data
driver: local
apache-logs:
# Volume for persistent storage of Apache logs
driver: local
bbsd-conf:
driver: local
bbsd-data:
driver: local
bbsd-var:
driver: local
bbsd-log:
driver: local
bbsd-utils-conf:
driver: local