Compare commits
9 Commits
acs-backen
...
acs-sync-b
Author | SHA1 | Date | |
---|---|---|---|
f5c4b00a02 | |||
9e4577222b | |||
b3a9145dd6 | |||
08ce9f6cc8 | |||
|
f10722dec9 | ||
15ccb5642b | |||
a56556b596 | |||
b1f3b14846 | |||
0b507962fa |
1
.env
1
.env
@@ -8,3 +8,4 @@ PROXY_PORT=8080
|
||||
ACS_TAG=7.4.1.1
|
||||
AAMQ_TAG=latest
|
||||
POSTGRES_TAG=13
|
||||
ALF_SYNC_SERV_TAG=3.9.0
|
||||
|
@@ -23,6 +23,7 @@ services:
|
||||
-Dalfresco.port=${PROXY_PORT}
|
||||
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
||||
-Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
|
||||
-Ddsync.service.uris=${PROXY_PROTOCOL}://${PROXY_HOST}:${PROXY_PORT}/sync
|
||||
"
|
||||
depends_on:
|
||||
- postgres-acs
|
||||
@@ -34,10 +35,23 @@ services:
|
||||
activemq:
|
||||
image: alfresco/alfresco-activemq:${AAMQ_TAG}
|
||||
|
||||
sync:
|
||||
image: quay.io/alfresco/service-sync:${ALF_SYNC_SERV_TAG}
|
||||
environment:
|
||||
JAVA_OPTS : "
|
||||
-Dsql.db.url=jdbc:postgresql://postgres-acs:5432/alfresco
|
||||
-Dmessaging.broker.host=activemq
|
||||
-Drepo.hostname=platform
|
||||
"
|
||||
depends_on:
|
||||
- postgres-acs
|
||||
- activemq
|
||||
|
||||
proxy:
|
||||
build: ./nginx-ingress
|
||||
image: local/nginx-ingress:acs
|
||||
image: local/nginx-ingress:acs-sync
|
||||
ports:
|
||||
- 8080:8080
|
||||
depends_on:
|
||||
- platform
|
||||
- sync
|
||||
|
@@ -4,6 +4,10 @@ if [[ $ACS_PLATFORM_URL ]]; then
|
||||
sed -i s%http:\/\/platform:8080%"$ACS_PLATFORM_URL"%g /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
||||
if [[ $ACS_SYNC_URL ]]; then
|
||||
sed -i s%http:\/\/sync:9090%"$ACS_SYNC_URL"%g /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
||||
if [[ $ACCESS_LOG ]]; then
|
||||
sed -i s%\#ENV_ACCESS_LOG%"access_log $ACCESS_LOG;"%g /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
@@ -48,5 +48,9 @@ http {
|
||||
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
||||
absolute_redirect off;
|
||||
}
|
||||
|
||||
location /sync/ {
|
||||
proxy_pass http://sync:9090/alfresco/;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user