8efab2002f
Not according to convention, but it reads better.
33 lines
915 B
YAML
33 lines
915 B
YAML
services:
|
|
|
|
gitea_app:
|
|
image: gitea/gitea:1.26.1
|
|
restart: unless-stopped
|
|
container_name: gitea_app
|
|
ports:
|
|
- "2222:22"
|
|
volumes:
|
|
- "{{ data_dir }}:/data"
|
|
- "{{ backups_dir }}:/backups"
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
networks:
|
|
- "web_proxy_network"
|
|
environment:
|
|
- "USER_UID={{ owner_create_result.uid }}"
|
|
- "USER_GID={{ owner_create_result.group }}"
|
|
- "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"
|
|
|
|
networks:
|
|
web_proxy_network:
|
|
external: true
|