57 lines
2.0 KiB
YAML
57 lines
2.0 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:
|
|
platform:
|
|
image: alfresco/alfresco-content-repository-community:6.2.0-ga
|
|
mem_limit: 1700m
|
|
environment:
|
|
JAVA_OPTS: "
|
|
-Ddb.driver=org.postgresql.Driver
|
|
-Ddb.username=alfresco
|
|
-Ddb.password=alfresco
|
|
-Ddb.url=jdbc:postgresql://postgres-acs:5432/alfresco
|
|
-Dindex.subsystem.name=noindex
|
|
-Dalfresco.host=${PROXY_HOST}
|
|
-Dalfresco.port=${PROXY_PORT}
|
|
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
|
-Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos
|
|
-Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
|
|
-Ddeployment.method=DOCKER_COMPOSE
|
|
-Dcsrf.filter.enabled=false
|
|
-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80
|
|
|
|
-Dtransform.service.enabled=false
|
|
-Dlocal.transform.service.enabled=false
|
|
|
|
-Dsystem.content.eagerOrphanCleanup=true
|
|
-Dsystem.content.orphanProtectDays=0
|
|
-Djodconverter.enabled=false
|
|
"
|
|
depends_on:
|
|
- postgres-acs
|
|
- activemq
|
|
|
|
postgres-acs:
|
|
image: postgres:11.7
|
|
mem_limit: 512m
|
|
environment:
|
|
- POSTGRES_PASSWORD=alfresco
|
|
- POSTGRES_USER=alfresco
|
|
- POSTGRES_DB=alfresco
|
|
command: postgres -c max_connections=300 -c log_min_messages=LOG
|
|
|
|
activemq:
|
|
image: alfresco/alfresco-activemq:5.15.8
|
|
mem_limit: 256m
|
|
|
|
proxy:
|
|
build: ./nginx-ingress
|
|
image: local/nginx-ingress:acs
|
|
ports:
|
|
- 8080:8080
|
|
depends_on:
|
|
- platform
|