Skip to content

Commit 9c3a789

Browse files
improve alfresco
1 parent 04dd852 commit 9c3a789

File tree

5 files changed

+66
-95
lines changed

5 files changed

+66
-95
lines changed

apps/akeneo/Notes.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Akeneo
22

3-
本应用需要重新编写,建议采用官方的 make 方案
3+
本应用需要重新编写,建议采用官方的 make 方案。
4+
5+
> 官方并没有计划提供一个开箱即用的社区版镜像,故我们也没有必要维护。
46
57
## 安装
68

apps/alfresco/.env

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Add this file
22
# Initial db username is alfresco , password is $W9_POWER_PASSWORD, if you modify it, you should modify $W9_ENCRYPT_PASSWORD by /src/encryption.py
33
# web gui: http://ip:8080/share/page/
4+
45
W9_VERSION=7.4.0
56
W9_ID=alfresco
67
W9_REPO = alfresco/alfresco-content-repository-community

apps/alfresco/docker-compose.yml

+60-92
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,13 @@
33
# Modified by Websoft9: replace using variable, volume define and bind
44

55
version: "3.8"
6-
76
services:
87
alfresco:
9-
image: $W9_REPO:$W9_VERSION-M2
10-
container_name: $W9_ID
11-
restart: unless-stopped
12-
env_file: .env
13-
deploy:
14-
resources:
15-
limits:
16-
memory: 1500M
17-
volumes:
18-
- alfresco:/usr/local/tomcat/alf_data
8+
image: docker.io/alfresco/alfresco-content-repository-community:23.1.0
9+
container_name: $W9_ID-alfresco # add by Websoft9
10+
mem_limit: 1900m
1911
environment:
20-
JAVA_TOOL_OPTIONS: "
12+
JAVA_TOOL_OPTIONS: >-
2113
-Dencryption.keystore.type=JCEKS
2214
-Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding
2315
-Dencryption.keyAlgorithm=DESede
@@ -26,14 +18,12 @@ services:
2618
-Dmetadata-keystore.aliases=metadata
2719
-Dmetadata-keystore.metadata.password=oKIWzVdEdA
2820
-Dmetadata-keystore.metadata.algorithm=DESede
29-
"
30-
JAVA_OPTS: "
31-
-Dalfresco_user_store.adminpassword=$W9_ENCRYPT_PASSWORD
21+
JAVA_OPTS: >-
3222
-Ddb.driver=org.postgresql.Driver
33-
-Ddb.username=alfresco
23+
-Ddb.username=alfresco
3424
-Ddb.password=$W9_POWER_PASSWORD
35-
-Ddb.url=jdbc:postgresql://postgres:5432/alfresco
36-
-Dsolr.host=solr6
25+
-Ddb.url=jdbc:postgresql://$W9_ID-postgres:5432/alfresco
26+
-Dsolr.host=$W9_ID-solr6
3727
-Dsolr.port=8983
3828
-Dsolr.http.connection.timeout=1000
3929
-Dsolr.secureComms=secret
@@ -44,134 +34,112 @@ services:
4434
-Dshare.port=8080
4535
-Dalfresco.host=localhost
4636
-Dalfresco.port=8080
37+
-Dcsrf.filter.enabled=false
4738
-Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos
48-
-Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
39+
-Dmessaging.broker.url="failover:(nio://$W9_ID-activemq:61616)?timeout=3000&jms.useCompression=true"
4940
-Ddeployment.method=DOCKER_COMPOSE
5041
-DlocalTransform.core-aio.url=http://transform-core-aio:8090/
51-
-Dcsrf.filter.enabled=false
52-
-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80
53-
"
42+
-XX:MinRAMPercentage=50
43+
-XX:MaxRAMPercentage=80
5444
5545
transform-core-aio:
56-
image: alfresco/alfresco-transform-core-aio:2.5.7
57-
container_name: $W9_ID-transform
58-
restart: unless-stopped
59-
deploy:
60-
resources:
61-
limits:
62-
memory: 1536M
46+
image: alfresco/alfresco-transform-core-aio:5.0.1
47+
mem_limit: 1536m
6348
environment:
64-
JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
65-
ports:
66-
- "$W9_TRANSFORM_PORT_SET:$W9_TRANSFORM_PORT"
67-
env_file: .env
49+
JAVA_OPTS: >-
50+
-XX:MinRAMPercentage=50
51+
-XX:MaxRAMPercentage=80
6852
6953
share:
70-
image: alfresco/alfresco-share:$W9_VERSION-M2
71-
container_name: $W9_ID-share
72-
restart: unless-stopped
73-
deploy:
74-
resources:
75-
limits:
76-
memory: 1G
54+
image: docker.io/alfresco/alfresco-share:23.1.1
55+
mem_limit: 1g
7756
environment:
7857
REPO_HOST: "alfresco"
7958
REPO_PORT: "8080"
80-
JAVA_OPTS: "
59+
JAVA_OPTS: >-
8160
-XX:MinRAMPercentage=50
8261
-XX:MaxRAMPercentage=80
8362
-Dalfresco.host=$W9_URL
8463
-Dalfresco.port=8080
8564
-Dalfresco.context=alfresco
8665
-Dalfresco.protocol=http
87-
"
88-
env_file: .env
8966
9067
postgres:
91-
image: postgres:13.3
92-
container_name: $W9_ID-postgresql
93-
restart: unless-stopped
94-
deploy:
95-
resources:
96-
limits:
97-
memory: 512M
68+
image: postgres:14.4
69+
mem_limit: 512m
70+
container_name: $W9_ID-postgresql # add by Websoft9
9871
environment:
9972
- POSTGRES_PASSWORD=$W9_POWER_PASSWORD
100-
- POSTGRES_USER=$W9_ID
101-
- POSTGRES_DB=$W9_ID
73+
- POSTGRES_USER=alfresco
74+
- POSTGRES_DB=alfresco
10275
command: postgres -c max_connections=300 -c log_min_messages=LOG
10376
volumes:
104-
- postgres_data:/var/lib/postgresql/data
105-
- postgres_logs:/var/log/postgresql
106-
env_file: .env
77+
- postgres:/var/lib/postgresql
10778

10879
solr6:
109-
image: alfresco/alfresco-search-services:2.0.3
110-
container_name: $W9_ID-solr
111-
restart: unless-stopped
112-
deploy:
113-
resources:
114-
limits:
115-
memory: 2G
80+
image: docker.io/alfresco/alfresco-search-services:2.0.8.2
81+
mem_limit: 2g
82+
container_name: $W9_ID-solr6
11683
environment:
11784
# Solr needs to know how to register itself with Alfresco
118-
SOLR_ALFRESCO_HOST: "alfresco"
85+
SOLR_ALFRESCO_HOST: $W9_ID-alfresco # Modify by Websoft9
11986
SOLR_ALFRESCO_PORT: "8080"
12087
# Alfresco needs to know how to call solr
121-
SOLR_SOLR_HOST: "solr6"
88+
SOLR_SOLR_HOST: $W9_ID-solr6 # Modify by Websoft9
12289
SOLR_SOLR_PORT: "8983"
12390
# Create the default alfresco and archive cores
12491
SOLR_CREATE_ALFRESCO_DEFAULTS: "alfresco,archive"
12592
# HTTPS or SECRET
12693
ALFRESCO_SECURE_COMMS: "secret"
12794
# SHARED SECRET VALUE
128-
JAVA_TOOL_OPTIONS: "-Dalfresco.secureComms.secret=secret"
129-
ports:
130-
- "$W9_SOLR_PORT_SET:$W9_SOLR_PORT"
131-
env_file: .env
95+
JAVA_TOOL_OPTIONS: >-
96+
-Dalfresco.secureComms.secret=secret
13297
13398
activemq:
134-
image: alfresco/alfresco-activemq:5.16.4-jre11-centos7
135-
container_name: $W9_ID-activemq
136-
restart: unless-stopped
137-
deploy:
138-
resources:
139-
limits:
140-
memory: 1G
141-
ports:
142-
- "$MQ_ACTIVEMQ_PORT:8161" # Web Console
143-
- "$W9_AMQP_PORT_SET:$W9_AMQP_PORT" # AMQP
144-
- "$W9_OPENWIRE_PORT_SET:$W9_OPENWIRE_PORT" # OpenWire
145-
- "$W9_STOMP_PORT_SET:$W9_STOMP_PORT" # STOMP
146-
env_file: .env
99+
image: alfresco/alfresco-activemq:5.18-jre17-rockylinux8
100+
mem_limit: 1g
101+
container_name: $W9_ID-activemq # add by Websoft9
102+
103+
content-app:
104+
image: alfresco/alfresco-content-app:4.3.0
105+
mem_limit: 128m
106+
environment:
107+
APP_BASE_SHARE_URL: "http://localhost:8080/aca/#/preview/s"
108+
109+
control-center:
110+
image: quay.io/alfresco/alfresco-control-center:8.3.0
111+
mem_limit: 128m
112+
environment:
113+
APP_CONFIG_PROVIDER: "ECM"
114+
APP_CONFIG_AUTH_TYPE: "BASIC"
115+
BASE_PATH: ./
147116

148117
proxy:
149-
image: alfresco/alfresco-acs-nginx:3.2.0
150-
container_name: $W9_ID-proxy
151-
restart: unless-stopped
152-
deploy:
153-
resources:
154-
limits:
155-
memory: 128M
118+
image: alfresco/alfresco-acs-nginx:3.4.2
119+
container_name: $W9_ID # add by Websoft9
120+
mem_limit: 128m
156121
environment:
157122
DISABLE_PROMETHEUS: "true"
158123
DISABLE_SYNCSERVICE: "true"
159124
DISABLE_ADW: "true"
125+
ENABLE_CONTENT_APP: "true"
160126
depends_on:
161127
- alfresco
128+
- content-app
129+
- control-center
162130
ports:
163-
- "$W9_HTTP_PORT_SET:$W9_HTTP_PORT"
131+
- "${W9_HTTP_PORT_SET}:8080"
164132
links:
133+
- content-app
165134
- alfresco
166135
- share
167-
env_file: .env
136+
- control-center
168137

169138
networks:
170139
default:
171140
name: ${W9_NETWORK}
172141
external: true
173142

174143
volumes:
175-
postgres_data:
176-
postgres_logs:
144+
postgres:
177145
alfresco:

apps/opencart/variables.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "opencart",
33
"trademark": "OpenCart",
4-
"release": true,
4+
"release": false,
55
"fork_url": "",
66
"edition": [
77
{

apps/suitecrm/variables.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "suitecrm",
33
"trademark": "SuiteCRM",
4-
"release": true,
4+
"release": false,
55
"fork_url": "https://github.com/bitnami/bitnami-docker-suitecrm",
66
"edition": [
77
{

0 commit comments

Comments
 (0)