diff --git a/docker-compose/community-docker-compose.yml b/docker-compose/community-docker-compose.yml index 399ba502c..191ef96c6 100644 --- a/docker-compose/community-docker-compose.yml +++ b/docker-compose/community-docker-compose.yml @@ -47,6 +47,14 @@ services: -DlocalTransform.core-aio.url=http://transform-core-aio:8090/ -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 + labels: + - "traefik.enable=true" + - "traefik.http.routers.alfresco.rule=PathPrefix(`/`)" + - "traefik.http.services.alfresco.loadbalancer.server.port=8080" + - "traefik.http.routers.solrapideny.rule=PathRegexp(`^/alfresco/(wc)?s(ervice)?/api/solr/.*$`)" + - "traefik.http.middlewares.fakeauth.basicauth.users=test:" + - "traefik.http.routers.solrapideny.middlewares=fakeauth@docker" + transform-core-aio: image: alfresco/alfresco-transform-core-aio:5.1.4 mem_limit: 1536m @@ -60,6 +68,8 @@ services: image: docker.io/alfresco/alfresco-share:23.3.0 mem_limit: 1g environment: + CSRF_FILTER_ORIGIN: http://localhost:8080 + CSRF_FILTER_REFERER: http://localhost:8080/share/.* REPO_HOST: "alfresco" REPO_PORT: "8080" JAVA_OPTS: >- @@ -69,6 +79,13 @@ services: -Dalfresco.port=8080 -Dalfresco.context=alfresco -Dalfresco.protocol=http + labels: + - "traefik.enable=true" + - "traefik.http.routers.share.rule=PathPrefix(`/share`)" + - "traefik.http.services.share.loadbalancer.server.port=8080" + - "traefik.http.routers.proxiedsolrapideny.rule=PathRegexp(`^/share/proxy/alfresco(-(noauth|feed|api))?/api/solr/`)" + - "traefik.http.routers.proxiedsolrapideny.middlewares=fakeauth@docker" + postgres: image: postgres:14.4 mem_limit: 512m @@ -111,6 +128,12 @@ services: mem_limit: 128m environment: APP_BASE_SHARE_URL: "http://localhost:8080/aca/#/preview/s" + labels: + - "traefik.enable=true" + - "traefik.http.routers.adw.rule=PathPrefix(`/content-app`)" + - "traefik.http.middlewares.adfroot.stripprefix.prefixes=/content-app,/admin" + - "traefik.http.routers.adw.middlewares=adfroot@docker" + control-center: image: quay.io/alfresco/alfresco-control-center:9.0.0 mem_limit: 128m @@ -118,22 +141,24 @@ services: APP_CONFIG_PROVIDER: "ECM" APP_CONFIG_AUTH_TYPE: "BASIC" BASE_PATH: ./ + labels: + - "traefik.enable=true" + - "traefik.http.routers.acc.rule=PathPrefix(`/admin`)" + - "traefik.http.routers.acc.middlewares=adfroot@docker" + proxy: - image: alfresco/alfresco-acs-nginx:3.4.2 + image: traefik:v3.1.3 mem_limit: 128m - environment: - DISABLE_PROMETHEUS: "true" - DISABLE_SYNCSERVICE: "true" - DISABLE_ADW: "true" - ENABLE_CONTENT_APP: "true" - depends_on: - - alfresco - - content-app - - control-center + command: + - "--api.insecure=true" + - "--providers.docker=true" + - "--entrypoints.web.address=:8080" + - "--entryPoints.traefik.address=:8888" + - "--accesslog=true" + - "--providers.docker.exposedByDefault=false" ports: - "8080:8080" - links: - - content-app - - alfresco - - share - - control-center + - "8888:8888" + privileged: true + volumes: + - /var/run/docker.sock:/var/run/docker.sock