Added SMTP to Configuration
This commit is contained in:
@ -14,6 +14,13 @@ services:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- TZ=America/Denver
|
||||
- GITEA__mailer__ENABLED=true
|
||||
- GITEA__mailer__FROM=${GITEA__mailer__FROM:?GITEA__mailer__FROM not set}
|
||||
- GITEA__mailer__PROTOCOL=smtp+starttls
|
||||
- GITEA__mailer__HOST=${GITEA__mailer__HOST:?GITEA__mailer__HOST not set}
|
||||
- GITEA__mailer__IS_TLS_ENABLED=true
|
||||
- GITEA__mailer__USER=${GITEA__mailer__USER:-apikey}
|
||||
- GITEA__mailer__PASSWD="""${GITEA__mailer__PASSWD:?GITEA__mailer__PASSWD not set}"""
|
||||
restart: always
|
||||
volumes:
|
||||
- /srv/containers/gitea:/data
|
||||
@ -25,14 +32,14 @@ services:
|
||||
networks:
|
||||
docker_network:
|
||||
ipv4_address: 192.168.5.70
|
||||
# labels:
|
||||
# - "traefik.enable=true"
|
||||
# - "traefik.http.routers.gitea.rule=Host(`git.bunny-lab.io`)"
|
||||
# - "traefik.http.routers.gitea.entrypoints=websecure"
|
||||
# - "traefik.http.routers.gitea.tls.certresolver=letsencrypt"
|
||||
# - "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
||||
depends_on:
|
||||
- postgres
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.gitea.rule=Host(`git.bunny-lab.io`)"
|
||||
- "traefik.http.routers.gitea.entrypoints=websecure"
|
||||
- "traefik.http.routers.gitea.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
||||
|
||||
postgres:
|
||||
image: postgres:12-alpine
|
||||
@ -56,7 +63,11 @@ networks:
|
||||
```
|
||||
|
||||
```jsx title=".env"
|
||||
POSTGRES_PASSWORD=SomethingSecure
|
||||
GITEA__mailer__FROM=noreply@bunny-lab.io
|
||||
GITEA__mailer__HOST=mail.bunny-lab.io
|
||||
GITEA__mailer__PASSWD=SecureSMTPPassword
|
||||
GITEA__mailer__USER=noreply@bunny-lab.io
|
||||
POSTGRES_PASSWORD=SomethingSuperSecure
|
||||
```
|
||||
|
||||
## Traefik Reverse Proxy Configuration
|
||||
@ -64,16 +75,17 @@ If the container does not run on the same host as Traefik, you will need to manu
|
||||
``` yaml
|
||||
http:
|
||||
routers:
|
||||
gitea:
|
||||
git:
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
certResolver: letsencrypt
|
||||
service: gitea
|
||||
http2:
|
||||
service: git
|
||||
rule: Host(`git.bunny-lab.io`)
|
||||
|
||||
services:
|
||||
gitea:
|
||||
git:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://192.168.5.70:3000
|
||||
|
Reference in New Issue
Block a user