60 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
version: "3"
 | 
						|
services:
 | 
						|
  server:
 | 
						|
    image: gitea/gitea:1
 | 
						|
    container_name: gitea
 | 
						|
    environment:
 | 
						|
      - USER_UID=1000
 | 
						|
      - USER_GID=1000
 | 
						|
      - GITEA__mailer__ENABLED=true
 | 
						|
      - GITEA__mailer__FROM=git@updates.thesatelliteoflove.com
 | 
						|
      - GITEA__mailer__PROTOCOL=smtps
 | 
						|
      - GITEA__mailer__SMTP_ADDR=smtp.resend.com
 | 
						|
      - GITEA__mailer__SMTP_PORT=465
 | 
						|
      - GITEA__mailer__USER=resend
 | 
						|
      - GITEA__mailer__PASSWD={{ resend_key }}
 | 
						|
    restart: unless-stopped
 | 
						|
    labels:
 | 
						|
      glance.name: Gitea
 | 
						|
      glance.icon: si:gitea
 | 
						|
      glance.url: https://git.thesatelliteoflove.com/
 | 
						|
      glance.description: Code repo
 | 
						|
      glance.id: gitea
 | 
						|
    volumes:
 | 
						|
      - gitea:/data
 | 
						|
      - /etc/timezone:/etc/timezone:ro
 | 
						|
      - /etc/localtime:/etc/localtime:ro
 | 
						|
    ports:
 | 
						|
      - 222:22
 | 
						|
    extra_hosts:
 | 
						|
      - 'auth.thesatelliteoflove.com:172.20.0.5'
 | 
						|
      - 'git.thesatelliteoflove.com:172.20.0.5'
 | 
						|
  runner:
 | 
						|
    image: gitea/act_runner:nightly
 | 
						|
    restart: unless-stopped
 | 
						|
    depends_on:
 | 
						|
      - server
 | 
						|
    environment:
 | 
						|
      - CONFIG_FILE=/config.yaml
 | 
						|
      - GITEA_INSTANCE_URL=http://gitea:3000
 | 
						|
      - GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea_runner_key }}
 | 
						|
      - GITEA_RUNNER_NAME=runner_1
 | 
						|
      - GITEA_RUNNER_LABELS=docker
 | 
						|
    extra_hosts:
 | 
						|
      - 'auth.thesatelliteoflove.com:172.20.0.5'
 | 
						|
      - 'git.thesatelliteoflove.com:172.20.0.5'
 | 
						|
    labels:
 | 
						|
      glance.parent: gitea
 | 
						|
      glance.name: Worker
 | 
						|
    volumes:
 | 
						|
      - ./runner-config.yaml:/config.yaml
 | 
						|
      - ./data:/data
 | 
						|
      - /var/run/docker.sock:/var/run/docker.sock
 | 
						|
      - /opt/stacks/caddy/site:/sites
 | 
						|
volumes:
 | 
						|
  gitea:
 | 
						|
    driver: local
 | 
						|
networks:
 | 
						|
  default:
 | 
						|
    external: true
 | 
						|
    name: lava |