28 lines
802 B
Django/Jinja
28 lines
802 B
Django/Jinja
services:
|
|
|
|
gitea_web_app:
|
|
image: gitea/gitea:1.23.7
|
|
restart: unless-stopped
|
|
container_name: gitea_web_app
|
|
ports:
|
|
- "${WEB_SERVER_PORT}:3000"
|
|
- "2222:22"
|
|
volumes:
|
|
- ./data:/data
|
|
- ./backups:/backups
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
environment:
|
|
- "USER_UID=${USER_UID}"
|
|
- "USER_GID=${USER_GID}"
|
|
- "GITEA__server__SSH_PORT=2222"
|
|
|
|
# Mailer
|
|
- "GITEA__mailer__ENABLED=true"
|
|
- "GITEA__mailer__PROTOCOL=smtp+starttls"
|
|
- "GITEA__mailer__SMTP_ADDR={{ postbox_host }}"
|
|
- "GITEA__mailer__SMTP_PORT={{ postbox_port }}"
|
|
- "GITEA__mailer__USER={{ postbox_user }}"
|
|
- "GITEA__mailer__PASSWD={{ postbox_pass }}"
|
|
- "GITEA__mailer__FROM=gitea@vakhrushev.me"
|