Compare commits
49 Commits
aps-persis
...
acs-share-
Author | SHA1 | Date | |
---|---|---|---|
23b3057329 | |||
b009fa9219 | |||
57af0a20b1 | |||
76e4287aa1 | |||
fcd1262721 | |||
d7de714eeb | |||
8e3301877a | |||
8b4e45c2e2 | |||
29f254a68e | |||
|
bf09b85448 | ||
6bce626075 | |||
3ef69c527b | |||
ebd6c503bd | |||
4afdf95b44 | |||
89ffe20aee | |||
f2ac689f85 | |||
1d5624496d | |||
3a6b5c4850 | |||
2367651a7e | |||
b8b267d4c5 | |||
c0c6dcd1ce | |||
68fcb3cbef | |||
4381a2d350 | |||
3cb24f7587 | |||
6579a5a0c9 | |||
1ead7a8d16 | |||
63aa212ccb | |||
6d396a640f | |||
4b9900a7fd | |||
9720bd7fa6 | |||
ff5442c869 | |||
4cb5100065 | |||
46bbeeef30 | |||
6b0c103d75 | |||
faee3aaa48 | |||
beb87dd97a | |||
db6a1e148c | |||
ab396f7656 | |||
b65d3d301f | |||
6332985ebd | |||
010149e6b6 | |||
c084972d39 | |||
79a1644530 | |||
5cfee3d18f | |||
72f7960369 | |||
6c665fab04 | |||
00e0a17249 | |||
bfa65c999e | |||
0f36dd1943 |
4
.env
4
.env
@@ -5,5 +5,7 @@ PROXY_PROTOCOL=http
|
|||||||
PROXY_HOST=localhost
|
PROXY_HOST=localhost
|
||||||
PROXY_PORT=8080
|
PROXY_PORT=8080
|
||||||
|
|
||||||
APS_TAG=2.4.1
|
ACS_TAG=7.4.1.1
|
||||||
|
AAMQ_TAG=latest
|
||||||
POSTGRES_TAG=13
|
POSTGRES_TAG=13
|
||||||
|
ACS_SHARE_TAG=7.4.1.2
|
||||||
|
@@ -4,52 +4,59 @@ version: "3"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
activiti-app:
|
platform:
|
||||||
image: quay.io/alfresco/alfresco-process-services:${APS_TAG}
|
image: alfresco/alfresco-content-repository-community:${ACS_TAG}
|
||||||
environment:
|
environment:
|
||||||
ACTIVITI_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps:5432/activiti?characterEncoding=UTF-8'
|
JAVA_TOOL_OPTIONS: "
|
||||||
|
-Dencryption.keystore.type=JCEKS
|
||||||
|
-Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding
|
||||||
|
-Dencryption.keyAlgorithm=DESede
|
||||||
|
-Dencryption.keystore.location=/usr/local/tomcat/shared/classes/alfresco/extension/keystore/keystore
|
||||||
|
-Dmetadata-keystore.password=mp6yc0UD9e
|
||||||
|
-Dmetadata-keystore.aliases=metadata
|
||||||
|
-Dmetadata-keystore.metadata.password=oKIWzVdEdA
|
||||||
|
-Dmetadata-keystore.metadata.algorithm=DESede"
|
||||||
|
JAVA_OPTS: "
|
||||||
|
-Ddb.driver=org.postgresql.Driver
|
||||||
|
-Ddb.url=jdbc:postgresql://postgres-acs:5432/alfresco
|
||||||
|
-Dshare.host=${PROXY_HOST}
|
||||||
|
-Dshare.port=${PROXY_PORT}
|
||||||
|
-Dshare.protocol=${PROXY_PROTOCOL}
|
||||||
|
-Dalfresco.host=${PROXY_HOST}
|
||||||
|
-Dalfresco.port=${PROXY_PORT}
|
||||||
|
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
||||||
|
-Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
|
||||||
|
"
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres-aps
|
- postgres-acs
|
||||||
volumes:
|
- activemq
|
||||||
- "$ALFRESCO_LICENSE_DIR/aps:/root/.activiti/enterprise-license:ro"
|
|
||||||
- apsbin-volume:/var/lib/postgresql/data:rw
|
|
||||||
|
|
||||||
activiti-admin:
|
share:
|
||||||
image: quay.io/alfresco/alfresco-process-services-admin:${APS_TAG}
|
image: alfresco/alfresco-share:${ACS_SHARE_TAG}
|
||||||
environment:
|
environment:
|
||||||
ACTIVITI_ADMIN_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps-admin:5432/activiti-admin?characterEncoding=UTF-8'
|
REPO_HOST: "platform"
|
||||||
ACTIVITI_ADMIN_REST_APP_HOST: http://activiti-app
|
CSRF_FILTER_REFERER: "${PROXY_PROTOCOL}://${PROXY_HOST}(:${PROXY_PORT})?/?.*"
|
||||||
depends_on:
|
CSRF_FILTER_ORIGIN: "${PROXY_PROTOCOL}://${PROXY_HOST}(:${PROXY_PORT})?"
|
||||||
- postgres-aps-admin
|
JAVA_OPTS: "
|
||||||
- activiti-app
|
-Dshare.host=${PROXY_HOST}
|
||||||
|
-Dshare.port=${PROXY_PORT}
|
||||||
|
-Dshare.protocol=${PROXY_PROTOCOL}
|
||||||
|
-Dalfresco.host=${PROXY_HOST}
|
||||||
|
-Dalfresco.port=${PROXY_PORT}
|
||||||
|
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
||||||
|
"
|
||||||
|
|
||||||
postgres-aps:
|
postgres-acs:
|
||||||
image: postgres:${POSTGRES_TAG}
|
image: postgres:${POSTGRES_TAG}
|
||||||
environment:
|
|
||||||
POSTGRES_DB: activiti
|
|
||||||
volumes:
|
|
||||||
- apsdb-volume:/var/lib/postgresql/data:rw
|
|
||||||
|
|
||||||
postgres-aps-admin:
|
activemq:
|
||||||
image: postgres:${POSTGRES_TAG}
|
image: alfresco/alfresco-activemq:${AAMQ_TAG}
|
||||||
environment:
|
|
||||||
POSTGRES_DB: activiti-admin
|
|
||||||
volumes:
|
|
||||||
- apsadmindb-volume:/var/lib/postgresql/data:rw
|
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
build: ./nginx-ingress
|
build: ./nginx-ingress
|
||||||
image: local/nginx-ingress:aps
|
image: local/nginx-ingress:acs-share
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
depends_on:
|
depends_on:
|
||||||
- activiti-app
|
- platform
|
||||||
- activiti-admin
|
- share
|
||||||
|
|
||||||
volumes:
|
|
||||||
apsbin-volume:
|
|
||||||
driver: local
|
|
||||||
apsdb-volume:
|
|
||||||
driver: local
|
|
||||||
apsadmindb-volume:
|
|
||||||
driver: local
|
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [[ $APS_APP_URL ]]; then
|
if [[ $ACS_PLATFORM_URL ]]; then
|
||||||
sed -i s%http:\/\/activiti-app:8080%"$APS_APP_URL"%g /etc/nginx/nginx.conf
|
sed -i s%http:\/\/platform:8080%"$ACS_PLATFORM_URL"%g /etc/nginx/nginx.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $APS_ADMIN_URL ]]; then
|
if [[ $ACS_SHARE_URL ]]; then
|
||||||
sed -i s%http:\/\/activiti-admin:8080%"$APS_ADMIN_URL"%g /etc/nginx/nginx.conf
|
sed -i s%http:\/\/share:8080%"$ACS_SHARE_URL"%g /etc/nginx/nginx.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $ACCESS_LOG ]]; then
|
if [[ $ACCESS_LOG ]]; then
|
||||||
|
@@ -39,18 +39,18 @@ http {
|
|||||||
location ~ ^(/.*/s/prometheus)$ {return 403;}
|
location ~ ^(/.*/s/prometheus)$ {return 403;}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 301 $scheme://$http_host/activiti-app;
|
proxy_pass http://platform:8080;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /activiti-app/ {
|
location /alfresco/ {
|
||||||
proxy_pass http://activiti-app:8080;
|
proxy_pass http://platform:8080;
|
||||||
|
|
||||||
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
||||||
absolute_redirect off;
|
absolute_redirect off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /activiti-admin/ {
|
location /share/ {
|
||||||
proxy_pass http://activiti-admin:8080;
|
proxy_pass http://share:8080;
|
||||||
|
|
||||||
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
||||||
absolute_redirect off;
|
absolute_redirect off;
|
||||||
|
Reference in New Issue
Block a user