72 lines
2.1 KiB
YAML
72 lines
2.1 KiB
YAML
# Sourced from https://github.com/Alfresco/acs-deployment/blob/4.0.3/docker-compose/docker-compose.yml
|
|
#
|
|
# Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose
|
|
version: "2"
|
|
|
|
services:
|
|
activiti-app:
|
|
image: alfresco/process-services:latest
|
|
environment:
|
|
ACTIVITI_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps:5432/activiti?characterEncoding=UTF-8'
|
|
ACTIVITI_ES_REST_CLIENT_ADDRESS: search-aps
|
|
depends_on:
|
|
- postgres-aps
|
|
volumes:
|
|
- "$ALFRESCO_LICENSE_DIR/aps:/root/.activiti/enterprise-license:ro"
|
|
- apsbin-volume:/var/lib/postgresql/data:rw
|
|
|
|
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
|
|
environment:
|
|
POSTGRES_DB: activiti
|
|
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:
|
|
build: ./nginx-ingress
|
|
image: local/nginx-ingress:acs
|
|
ports:
|
|
- 8080:8080
|
|
depends_on:
|
|
- activiti-app
|
|
- activiti-admin
|
|
|
|
volumes:
|
|
apsbin-volume:
|
|
driver: local
|
|
apsdb-volume:
|
|
driver: local
|
|
apsadmindb-volume:
|
|
driver: local
|
|
esindex-volume:
|
|
driver: local
|