60 lines
2.1 KiB
YAML
60 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:
|
|
platform:
|
|
build: ./alfresco-content-repository/docker
|
|
image: local/alfresco-content-repository:latest
|
|
environment:
|
|
JAVA_OPTS: "
|
|
-Ddb.driver=org.postgresql.Driver
|
|
-Ddb.url=jdbc:postgresql://postgres-acs:5432/alfresco
|
|
-Dshare.host=${PROXY_HOST}
|
|
-Dshare.port=${PROXY_PORT}
|
|
-Dshare.protocol=${PROXY_PROTOCOL}
|
|
-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:
|
|
- postgres-acs
|
|
- activemq
|
|
volumes:
|
|
- "./alfresco-content-repository/modules:/usr/local/tomcat/modules:ro"
|
|
|
|
share:
|
|
build: ./alfresco-share/docker
|
|
image: local/alfresco-share:latest
|
|
environment:
|
|
REPO_HOST: "platform"
|
|
CSRF_FILTER_REFERER: "${PROXY_PROTOCOL}://${PROXY_HOST}(:${PROXY_PORT})?/?.*"
|
|
CSRF_FILTER_ORIGIN: "${PROXY_PROTOCOL}://${PROXY_HOST}(:${PROXY_PORT})?"
|
|
JAVA_OPTS: "
|
|
-Dshare.host=${PROXY_HOST}
|
|
-Dshare.port=${PROXY_PORT}
|
|
-Dshare.protocol=${PROXY_PROTOCOL}
|
|
-Dalfresco.host=${PROXY_HOST}
|
|
-Dalfresco.port=${PROXY_PORT}
|
|
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
|
"
|
|
volumes:
|
|
- "./alfresco-share/modules:/usr/local/tomcat/modules:ro"
|
|
|
|
postgres-acs:
|
|
image: postgres:latest
|
|
|
|
activemq:
|
|
image: alfresco/alfresco-activemq:latest
|
|
|
|
proxy:
|
|
build: ./nginx-ingress
|
|
image: local/nginx-ingress:acs-share
|
|
ports:
|
|
- 8080:8080
|
|
depends_on:
|
|
- platform
|
|
- share
|