30 lines
948 B
YAML
30 lines
948 B
YAML
|
|
services:
|
||
|
|
forgejo:
|
||
|
|
image: codeberg.org/forgejo/forgejo:1.21
|
||
|
|
restart: unless-stopped
|
||
|
|
environment:
|
||
|
|
- USER_UID=1000
|
||
|
|
- USER_GID=1000
|
||
|
|
- FORGEJO__mailer__ENABLED=true
|
||
|
|
- FORGEJO__mailer__PROTOCOL=smtp+starttls
|
||
|
|
- FORGEJO__mailer__SMTP_ADDR=smtp.mailpace.com
|
||
|
|
- FORGEJO__mailer__SMTP_PORT=587
|
||
|
|
- FORGEJO__mailer__USER=${MAILPACE_USER}
|
||
|
|
- FORGEJO__mailer__PASSWD=${MAILPACE_PASS}
|
||
|
|
- FORGEJO__mailer__FROM=noreply@swansoncloud.com
|
||
|
|
volumes:
|
||
|
|
- ./data:/data
|
||
|
|
networks:
|
||
|
|
- traefik
|
||
|
|
labels:
|
||
|
|
- "traefik.enable=true"
|
||
|
|
- "traefik.http.routers.forgejo.rule=Host(`forgejo.swansoncloud.com`)"
|
||
|
|
- "traefik.http.routers.forgejo.entrypoints=websecure"
|
||
|
|
- "traefik.http.routers.forgejo.tls.certresolver=letsencrypt"
|
||
|
|
- "traefik.http.services.forgejo.loadbalancer.server.port=3000"
|
||
|
|
- "traefik.docker.network=traefik"
|
||
|
|
|
||
|
|
networks:
|
||
|
|
traefik:
|
||
|
|
external: true
|