Skip to content

Commit ffdf0cb

Browse files
committed
Update the sample docker-compose.yml files
Removed the fileServersNG run scripts Updated the fileServersNG readme.md
1 parent 5fcc468 commit ffdf0cb

File tree

6 files changed

+343
-215
lines changed

6 files changed

+343
-215
lines changed

README.md

+19-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,24 @@ with support for the latest SMB2 and SMB3 protocols.
44

55
Builds the fileserversng AMP for Alfresco versions 6.2 - 23.1 using the Alfresco 4.1 SDK.
66

7-
To build the fileServersNG AMP use `mvn clean package`, this will create the fileserversng-24.1.amp
8-
file in the target/ folder.
7+
To build the fileServersNG AMP use `mvn clean install`, this will create the fileserversng-24.1.amp.
98

10-
For more complete instructions on how to build and deploy the fileServersNG subsystem see
11-
[here](http://www.filesys.org/wiki/index.php/How_to_build_and_deploy_the_fileServersNG_subsystem).
9+
## Running With Docker
10+
There are pre-built Docker images for fileServersNG using Alfresco 6.2, 7.4 and 23.1. To use the pre-built
11+
images there are sample docker-compose.yml files in the Docker/ folder.
1212

13+
The supplied docker-compose.yml files need to be edited before they can be used. Look for the '<MAP-TO-A-LOCAL-FOLDER>'
14+
placeholders.
15+
16+
To enable the file server SMB2/SMB3 functionality you will need a fileServersNG licence key. To request a trial licence
17+
email info@filesys.org.
18+
19+
### Alfresco 6.2 docker-compose.yml
20+
The fileServersNG Alfresco 6.2 setup uses Docker volumes to store the Alfresco content service, search service and
21+
database data. You will need to create these volumes using the following commands :-
22+
23+
docker volume create fileserversng-v62-acs-volume
24+
docker volume create fileserversng-v62-db-volume
25+
docker volume create fileserversng-v62-ass-volume
26+
27+
More information is available on the filesys.org Wiki pages [here](http://www.filesys.org/wiki/index.php).
+155
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
# This docker-compose file will spin up an ACS community installation on a local host.
2+
# It requires at least 6GB of memory available to distribute among containers.
3+
#
4+
# For performance tuning, increase each container mem_limit and give a percentage of
5+
# it to the JVM. Use either the -Xms,-Xmx flags or the newly added flags in
6+
# java 10+: -XX:MaxRAMPercentage and -XX:MinRAMPercentage.
7+
# More details here:
8+
# https://www.oracle.com/technetwork/java/javase/10-relnote-issues-4108729.html
9+
#
10+
# Using version 2 as 3 does not support resource constraint options
11+
# (cpu_*, mem_* limits) for non swarm mode in Compose
12+
version: "2"
13+
services:
14+
alfresco:
15+
image: filesysorg/alfresco-fileserversng-v23.1:latest
16+
mem_limit: 1900m
17+
environment:
18+
JAVA_TOOL_OPTIONS: >-
19+
-Dencryption.keystore.type=JCEKS
20+
-Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding
21+
-Dencryption.keyAlgorithm=DESede
22+
-Dencryption.keystore.location=/usr/local/tomcat/shared/classes/alfresco/extension/keystore/keystore
23+
-Dmetadata-keystore.password=mp6yc0UD9e
24+
-Dmetadata-keystore.aliases=metadata
25+
-Dmetadata-keystore.metadata.password=oKIWzVdEdA
26+
-Dmetadata-keystore.metadata.algorithm=DESede
27+
JAVA_OPTS: >-
28+
-Ddb.driver=org.postgresql.Driver
29+
-Ddb.username=alfresco
30+
-Ddb.password=alfresco
31+
-Ddb.url=jdbc:postgresql://postgres:5432/alfresco
32+
-Dsolr.host=solr6
33+
-Dsolr.port=8983
34+
-Dsolr.http.connection.timeout=1000
35+
-Dsolr.secureComms=secret
36+
-Dsolr.sharedSecret=secret
37+
-Dsolr.base.url=/solr
38+
-Dindex.subsystem.name=solr6
39+
-Dshare.host=127.0.0.1
40+
-Dshare.port=8080
41+
-Dalfresco.host=localhost
42+
-Dalfresco.port=8080
43+
-Dcsrf.filter.enabled=false
44+
-Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos
45+
-Dmessaging.broker.url="failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true"
46+
-Ddeployment.method=DOCKER_COMPOSE
47+
-DlocalTransform.core-aio.url=http://transform-core-aio:8090/
48+
-XX:MinRAMPercentage=50
49+
-XX:MaxRAMPercentage=80
50+
FSNG_SMB_DIALECTS: SMB2
51+
FSNG_SMB_DISABLE_NTLM: false
52+
FSNG_SMB_ENABLEPOSTCLOSE: true
53+
ports:
54+
- "445:1445"
55+
- "8000:8000"
56+
volumes:
57+
# Map the Alfresco data to a local folder, or use a Docker volume
58+
- <MAP-TO-LOCAL-FOLDER>/alf_data:/usr/local/tomcat/alf_data
59+
# Licence file should be in a local folder, or only SMB1 will be enabled
60+
# Request a fileServersNG trial licence by emailing info@filesys.org
61+
- <MAP-TO-LOCAL-FOLDER>:/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/license
62+
# If using Kerberos authentication then map a local folder containing the Kerberos keytab and login.conf
63+
# - <MAP-TO-LOCAL-FOLDER>:/kerberos
64+
transform-core-aio:
65+
image: alfresco/alfresco-transform-core-aio:5.0.1
66+
mem_limit: 1536m
67+
environment:
68+
JAVA_OPTS: >-
69+
-XX:MinRAMPercentage=50
70+
-XX:MaxRAMPercentage=80
71+
ports:
72+
- "8090:8090"
73+
share:
74+
image: docker.io/alfresco/alfresco-share:23.1.1
75+
mem_limit: 1g
76+
environment:
77+
REPO_HOST: "alfresco"
78+
REPO_PORT: "8080"
79+
JAVA_OPTS: >-
80+
-XX:MinRAMPercentage=50
81+
-XX:MaxRAMPercentage=80
82+
-Dalfresco.host=localhost
83+
-Dalfresco.port=8080
84+
-Dalfresco.context=alfresco
85+
-Dalfresco.protocol=http
86+
postgres:
87+
image: postgres:14.4
88+
mem_limit: 512m
89+
environment:
90+
- POSTGRES_PASSWORD=alfresco
91+
- POSTGRES_USER=alfresco
92+
- POSTGRES_DB=alfresco
93+
command: postgres -c max_connections=300 -c log_min_messages=LOG
94+
volumes:
95+
- /Volumes/SSD/Users/gkspencer/Docker/alf231/postgres:/var/lib/postgresql/data
96+
ports:
97+
- "5432:5432"
98+
solr6:
99+
image: docker.io/alfresco/alfresco-search-services:2.0.8.2
100+
mem_limit: 2g
101+
environment:
102+
# Solr needs to know how to register itself with Alfresco
103+
SOLR_ALFRESCO_HOST: "alfresco"
104+
SOLR_ALFRESCO_PORT: "8080"
105+
# Alfresco needs to know how to call solr
106+
SOLR_SOLR_HOST: "solr6"
107+
SOLR_SOLR_PORT: "8983"
108+
# Create the default alfresco and archive cores
109+
SOLR_CREATE_ALFRESCO_DEFAULTS: "alfresco,archive"
110+
# HTTPS or SECRET
111+
ALFRESCO_SECURE_COMMS: "secret"
112+
# SHARED SECRET VALUE
113+
JAVA_TOOL_OPTIONS: >-
114+
-Dalfresco.secureComms.secret=secret
115+
ports:
116+
- "8083:8983" # Browser port
117+
activemq:
118+
image: alfresco/alfresco-activemq:5.18-jre17-rockylinux8
119+
mem_limit: 1g
120+
ports:
121+
- "8161:8161" # Web Console
122+
- "5672:5672" # AMQP
123+
- "61616:61616" # OpenWire
124+
- "61613:61613" # STOMP
125+
content-app:
126+
image: alfresco/alfresco-content-app:4.3.0
127+
mem_limit: 128m
128+
environment:
129+
APP_BASE_SHARE_URL: "http://localhost:8080/aca/#/preview/s"
130+
control-center:
131+
image: quay.io/alfresco/alfresco-control-center:8.3.0
132+
mem_limit: 128m
133+
environment:
134+
APP_CONFIG_PROVIDER: "ECM"
135+
APP_CONFIG_AUTH_TYPE: "BASIC"
136+
BASE_PATH: ./
137+
proxy:
138+
image: alfresco/alfresco-acs-nginx:3.4.2
139+
mem_limit: 128m
140+
environment:
141+
DISABLE_PROMETHEUS: "true"
142+
DISABLE_SYNCSERVICE: "true"
143+
DISABLE_ADW: "true"
144+
ENABLE_CONTENT_APP: "true"
145+
depends_on:
146+
- alfresco
147+
- content-app
148+
- control-center
149+
ports:
150+
- "8080:8080"
151+
links:
152+
- content-app
153+
- alfresco
154+
- share
155+
- control-center
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
1-
version: '3.4'
1+
version: "3.4"
2+
23
services:
3-
# Optional
44
fileserversng-v62-share:
5-
image: ${docker.share.image}:${alfresco.share.version}
5+
image: alfresco/alfresco-share:6.2.0
66
environment:
77
REPO_HOST: fileserversng-v62-acs
88
REPO_PORT: 8080
99
ports:
10-
- "${share.port}:8080"
10+
- "8180:8080"
11+
1112
fileserversng-v62-acs:
12-
image: alfresco-content-services-fileserversng-v62:development
13-
build:
14-
dockerfile: ./Dockerfile
15-
context: ../../../target
13+
image: filesysorg/alfresco-fileserversng-v62:latest
1614
environment:
17-
CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8888"
15+
FSNG_SMB_DEBUGFLAGS: "Negotiate,Socket,State,Error,Signing"
1816
ports:
19-
- "${acs.port}:8080"
20-
- "${acs.debug.port}:8888"
21-
- "445:445"
17+
- "8080:8080"
18+
- "445:1445"
2219
- "21:21"
23-
- "60000-60100:60000-60100"
20+
- "60000:60100"
2421
volumes:
2522
- fileserversng-v62-acs-volume:/usr/local/tomcat/alf_data
23+
# Licence file should be in a local folder, or only SMB1 will be enabled
24+
# Request a fileServersNG trial licence by emailing info@filesys.org
25+
- <MAP-TO-LOCAL-FOLDER>:/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extensions/license
2626
depends_on:
2727
- fileserversng-v62-postgres
28+
2829
fileserversng-v62-postgres:
2930
image: postgres:9.6
3031
environment:
@@ -33,9 +34,10 @@ services:
3334
POSTGRES_PASSWORD: alfresco
3435
command: postgres -c max_connections=300 -c log_min_messages=LOG
3536
ports:
36-
- "${postgres.port}:5432"
37+
- "5432:5432"
3738
volumes:
3839
- fileserversng-v62-db-volume:/var/lib/postgresql/data
40+
3941
fileserversng-v62-ass:
4042
image: alfresco/alfresco-search-services:1.2.0
4143
environment:
@@ -50,9 +52,9 @@ services:
5052
- fileserversng-v62-ass-volume:/opt/alfresco-search-services/contentstore
5153
- fileserversng-v62-ass-volume:/opt/alfresco-search-services/data
5254
volumes:
53-
fileserversng-v62-acs-volume:
54-
external: true
55-
fileserversng-v62-db-volume:
56-
external: true
57-
fileserversng-v62-ass-volume:
58-
external: true
55+
fileserversng-v62-acs-volume:
56+
external: true
57+
fileserversng-v62-db-volume:
58+
external: true
59+
fileserversng-v62-ass-volume:
60+
external: true

0 commit comments

Comments
 (0)