34 lines
		
	
	
		
			947 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			947 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
| services:
 | |
| 
 | |
|   gitea_app:
 | |
|     image: gitea/gitea:1.24.6
 | |
|     restart: unless-stopped
 | |
|     container_name: gitea_app
 | |
|     ports:
 | |
|       - "127.0.0.1:{{ gitea_port }}:3000"
 | |
|       - "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={{ user_create_result.uid }}"
 | |
|       - "USER_GID={{ user_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
 |