exposing all services

pull/16/head
Richard Attermeyer 2023-11-26 15:19:28 +01:00 committed by Richard Attermeyer
parent 873d22c5d2
commit a91c0d0ea3
1 changed files with 22 additions and 9 deletions

View File

@ -35,8 +35,7 @@ services:
- "2222:222/tcp" - "2222:222/tcp"
# The Web UI (enabled by '--api.dashboard=true' and '--api.insecure=true') # The Web UI (enabled by '--api.dashboard=true' and '--api.insecure=true')
- "8181:8080" - "8181:8080"
networks: network_mode: host
- proxy
volumes: volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro" - "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./traefik/traefik.yml:/etc/traefik/traefik.yml:ro" - "./traefik/traefik.yml:/etc/traefik/traefik.yml:ro"
@ -56,6 +55,12 @@ services:
ports: ports:
- "1080:1080" - "1080:1080"
- "1025:1025" - "1025:1025"
labels:
- "traefik.enable=true"
- "traefik.http.routers.mail.rule=Host(`${MAIL_HOST}`)"
- "traefik.http.routers.mail.tls=true"
- "traefik.http.routers.mail.entrypoints=https"
- "traefik.http.services.mail.loadbalancer.server.port=1080"
forgejo: forgejo:
image: codeberg.org/forgejo/forgejo:1.20 image: codeberg.org/forgejo/forgejo:1.20
@ -68,12 +73,19 @@ services:
- FORGEJO__database__NAME=forgejo - FORGEJO__database__NAME=forgejo
- FORGEJO__database__USER=forgejo - FORGEJO__database__USER=forgejo
- FORGEJO__database__PASSWD=forgejo - FORGEJO__database__PASSWD=forgejo
- FORGEJO__server__ROOT_URL=${FORGEJO_URL}
- FORGEJO__webhook__SKIP_TLS_VERIFY=true - FORGEJO__webhook__SKIP_TLS_VERIFY=true
- FORGEJO__webhook__ALLOWED_HOST_LIST=external,* - FORGEJO__webhook__ALLOWED_HOST_LIST=external,*
- FORGEJO__webhook__DELIVER_TIMEOUT=20 - FORGEJO__webhook__DELIVER_TIMEOUT=20
- FORGEJO__mailer__SMTP_ADDR=smtp - FORGEJO__mailer__SMTP_ADDR=smtp
- FORGEJO__mailer__SMTP_PORT=1025 - FORGEJO__mailer__SMTP_PORT=1025
- FORGEJO__mailer__SMTP_ENABLED=true
- FORGEJO__server__LFS_START_SERVER=true
- FORGEJO__CRON__ENABLED=true
- FORGEJO__service__DISABLE_REGISTRATION=true
restart: always restart: always
ports:
- "3000:3000"
networks: networks:
- forgejo - forgejo
- proxy - proxy
@ -186,7 +198,7 @@ services:
- "traefik.http.services.regui.loadbalancer.passhostheader=true" - "traefik.http.services.regui.loadbalancer.passhostheader=true"
mvn-registry: mvn-registry:
image: ghcr.io/dzikoysk/reposilite:3.4.10 image: ghcr.io/dzikoysk/reposilite:3.4.10
container_name: mvn-registry container_name: reposilite
deploy: deploy:
resources: resources:
limits: limits:
@ -202,9 +214,9 @@ services:
tty: true tty: true
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.artifacts.rule=Host(`${ARTIFACTS_HOST}`)" - "traefik.http.routers.mvn.rule=Host(`${REPOSILITE_HOST}`)"
- "traefik.http.routers.artifacts.entrypoints=http" - "traefik.http.routers.mvn.entrypoints=http"
- "traefik.http.services.artifacts.loadbalancer.server.port=8080" - "traefik.http.services.mvn.loadbalancer.server.port=${REPOSILITE_PORT}"
verdaccio: verdaccio:
image: verdaccio/verdaccio:5 image: verdaccio/verdaccio:5
container_name: verdaccio container_name: verdaccio
@ -217,9 +229,10 @@ services:
networks: networks:
- proxy - proxy
labels: labels:
- "traefik.http.routers.artifacts.rule=Host(`${VERDACCIO_HOST}`)" - "traefik.enable=true"
- "traefik.http.routers.artifacts.entrypoints=http" - "traefik.http.routers.npm.rule=Host(`${VERDACCIO_HOST}`)"
- "traefik.http.services.artifacts.loadbalancer.server.port=4873" - "traefik.http.routers.npm.entrypoints=http"
- "traefik.http.services.npm.loadbalancer.server.port=4873"
# #
#watchtower: #watchtower:
# image: containrrr/watchtower:latest # image: containrrr/watchtower:latest