Compare commits

..

13 Commits

3 changed files with 67 additions and 50 deletions

View File

@@ -4,51 +4,52 @@
version: "2" version: "2"
services: services:
platform: activiti-app:
image: alfresco/alfresco-content-repository:latest image: alfresco/process-services:latest
environment: environment:
JAVA_OPTS: " ACTIVITI_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps:5432/activiti?characterEncoding=UTF-8'
-Ddb.driver=org.postgresql.Driver ACTIVITI_ES_REST_CLIENT_ADDRESS: search-aps
-Ddb.url=jdbc:postgresql://postgres-acs:5432/alfresco
-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-acs - postgres-aps
- activemq
- shared-file-store
transform-router:
image: quay.io/alfresco/alfresco-transform-router:latest
environment:
ACTIVEMQ_URL: "nio://activemq:61616"
CORE_AIO_URL : "http://transform-core-aio:8090"
FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
depends_on:
- activemq
- shared-file-store
transform-core-aio:
image: alfresco/alfresco-transform-core-aio:latest
environment:
ACTIVEMQ_URL: "nio://activemq:61616"
FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
depends_on:
- activemq
- shared-file-store
shared-file-store:
image: alfresco/alfresco-shared-file-store:latest
volumes: volumes:
- shared-file-store-volume:/tmp/Alfresco/sfs - "$ALFRESCO_LICENSE_DIR/aps:/root/.activiti/enterprise-license:ro"
- apsbin-volume:/var/lib/postgresql/data:rw
postgres-acs: activiti-admin:
image: alfresco/process-services-admin:latest
environment:
ACTIVITI_ADMIN_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps-admin:5432/activiti-admin?characterEncoding=UTF-8'
ACTIVITI_ADMIN_REST_APP_HOST: http://activiti-app
depends_on:
- postgres-aps-admin
- activiti-app
postgres-aps:
image: postgres:latest image: postgres:latest
environment:
activemq: POSTGRES_DB: activiti
image: alfresco/alfresco-activemq:latest volumes:
- apsdb-volume:/var/lib/postgresql/data:rw
postgres-aps-admin:
image: postgres:latest
environment:
POSTGRES_DB: activiti-admin
volumes:
- apsadmindb-volume:/var/lib/postgresql/data:rw
search-aps:
image: elasticsearch:latest
environment:
discovery.type: single-node
ulimits:
memlock:
soft: -1
hard: -1
depends_on:
- activiti-app
volumes:
- esindex-volume:/var/lib/postgresql/data:rw
proxy: proxy:
build: ./nginx-ingress build: ./nginx-ingress
@@ -56,10 +57,15 @@ services:
ports: ports:
- 8080:8080 - 8080:8080
depends_on: depends_on:
- platform - activiti-app
- activiti-admin
volumes: volumes:
shared-file-store-volume: apsbin-volume:
driver_opts: driver: local
type: tmpfs apsdb-volume:
device: tmpfs driver: local
apsadmindb-volume:
driver: local
esindex-volume:
driver: local

View File

@@ -1,7 +1,11 @@
#!/bin/sh #!/bin/sh
if [[ $ACS_PLATFORM_URL ]]; then if [[ $APS_APP_URL ]]; then
sed -i s%http:\/\/platform:8080%"$ACS_PLATFORM_URL"%g /etc/nginx/nginx.conf sed -i s%http:\/\/activiti-app:8080%"$APS_APP_URL"%g /etc/nginx/nginx.conf
fi
if [[ $APS_ADMIN_URL ]]; then
sed -i s%http:\/\/activiti-admin:8080%"$APS_ADMIN_URL"%g /etc/nginx/nginx.conf
fi fi
if [[ $ACCESS_LOG ]]; then if [[ $ACCESS_LOG ]]; then

View File

@@ -39,11 +39,18 @@ http {
location ~ ^(/.*/s/prometheus)$ {return 403;} location ~ ^(/.*/s/prometheus)$ {return 403;}
location / { location / {
proxy_pass http://platform:8080; return 301 $scheme://$http_host/activiti-app;
} }
location /alfresco/ { location /activiti-app/ {
proxy_pass http://platform:8080; proxy_pass http://activiti-app:8080;
# If using external proxy / load balancer (for initial redirect if no trailing slash)
absolute_redirect off;
}
location /activiti-admin/ {
proxy_pass http://activiti-admin: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;