Compare commits

..

6 Commits

2 changed files with 38 additions and 30 deletions

3
.env
View File

@@ -4,6 +4,3 @@ ALFRESCO_LICENSE_DIR=~/alfresco/license
PROXY_PROTOCOL=http PROXY_PROTOCOL=http
PROXY_HOST=localhost PROXY_HOST=localhost
PROXY_PORT=8080 PROXY_PORT=8080
APS_TAG=2.4.1
POSTGRES_TAG=13

View File

@@ -1,60 +1,71 @@
# Originally sourced from https://github.com/Alfresco/acs-deployment/blob/4.0.3/docker-compose/docker-compose.yml # Sourced from https://github.com/Alfresco/acs-deployment/blob/4.0.3/docker-compose/docker-compose.yml
# #
version: "3" # Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose
version: "2"
services: services:
activiti-app: activiti-app:
image: quay.io/alfresco/alfresco-process-services:${APS_TAG} image: alfresco/process-services:latest
environment: environment:
ACTIVITI_DATASOURCE_USERNAME: alfresco
ACTIVITI_DATASOURCE_PASSWORD: alfresco
ACTIVITI_DATASOURCE_DRIVER: org.postgresql.Driver
ACTIVITI_HIBERNATE_DIALECT: org.hibernate.dialect.PostgreSQLDialect
ACTIVITI_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps:5432/activiti?characterEncoding=UTF-8' ACTIVITI_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps:5432/activiti?characterEncoding=UTF-8'
JAVA_OPTS: "-Xms128m -Xmx256m" ACTIVITI_ES_REST_CLIENT_ADDRESS: search-aps
depends_on: depends_on:
- postgres-aps - postgres-aps
volumes: volumes:
- "$ALFRESCO_LICENSE_DIR/aps:/home/alfresco/.activiti/enterprise-license:ro" - "$ALFRESCO_LICENSE_DIR/aps:/root/.activiti/enterprise-license:ro"
- apsbin-volume:/var/lib/postgresql/data:rw
activiti-admin: activiti-admin:
image: quay.io/alfresco/alfresco-process-services-admin:${APS_TAG} image: alfresco/process-services-admin:latest
environment: environment:
ACTIVITI_ADMIN_DATASOURCE_USERNAME: alfresco
ACTIVITI_ADMIN_DATASOURCE_PASSWORD: alfresco
ACTIVITI_ADMIN_DATASOURCE_DRIVER: org.postgresql.Driver
ACTIVITI_ADMIN_HIBERNATE_DIALECT: org.hibernate.dialect.PostgreSQLDialect
ACTIVITI_ADMIN_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps-admin:5432/activiti-admin?characterEncoding=UTF-8' ACTIVITI_ADMIN_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps-admin:5432/activiti-admin?characterEncoding=UTF-8'
ACTIVITI_ADMIN_REST_APP_HOST: http://activiti-app ACTIVITI_ADMIN_REST_APP_HOST: http://activiti-app
ACTIVITI_ADMIN_REST_APP_PORT: 8080
JAVA_OPTS: "-Xms64m -Xmx128m"
depends_on: depends_on:
- postgres-aps-admin - postgres-aps-admin
- activiti-app - activiti-app
postgres-aps: postgres-aps:
image: postgres:${POSTGRES_TAG} image: postgres:latest
environment: environment:
POSTGRES_DB: activiti POSTGRES_DB: activiti
POSTGRES_USER: alfresco volumes:
POSTGRES_PASSWORD: alfresco - apsdb-volume:/var/lib/postgresql/data:rw
command: postgres -c max_connections=300 -c log_min_messages=LOG
postgres-aps-admin: postgres-aps-admin:
image: postgres:${POSTGRES_TAG} image: postgres:latest
environment: environment:
POSTGRES_DB: activiti-admin POSTGRES_DB: activiti-admin
POSTGRES_USER: alfresco volumes:
POSTGRES_PASSWORD: alfresco - apsadmindb-volume:/var/lib/postgresql/data:rw
command: postgres -c max_connections=50 -c log_min_messages=LOG
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
image: local/nginx-ingress:aps image: local/nginx-ingress:acs
mem_limit: 256m
ports: ports:
- 8080:8080 - 8080:8080
depends_on: depends_on:
- activiti-app - activiti-app
- activiti-admin - activiti-admin
volumes:
apsbin-volume:
driver: local
apsdb-volume:
driver: local
apsadmindb-volume:
driver: local
esindex-volume:
driver: local