Skip to content

Commit

Permalink
apply traefik config to community compose
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Sep 25, 2024
1 parent 8a10288 commit 865b895
Showing 1 changed file with 40 additions and 15 deletions.
55 changes: 40 additions & 15 deletions docker-compose/community-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: >-
Expand All @@ -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
Expand Down Expand Up @@ -111,29 +128,37 @@ 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
environment:
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

0 comments on commit 865b895

Please sign in to comment.