services:
twingate-famous-alligator:
image: docker.mafyuh.xyz/twingate/connector@sha256:749a50d21a69221e6737013e358e52c234d32b4dc9c9d905b383d802082e2807
container_name: twingate-famous-alligator
restart: always
environment:
- TWINGATE_NETWORK=$TWINGATE_NETWORK
- TWINGATE_ACCESS_TOKEN=$TWINGATE_ACCESS_TOKEN
- TWINGATE_REFRESH_TOKEN=$TWINGATE_REFRESH_TOKEN
- TWINGATE_LABEL_HOSTNAME=${HOSTNAME}
- TWINGATE_LABEL_DEPLOYED_BY=docker
sysctls:
- net.ipv4.ping_group_range=0 2147483647
docker-in-docker:
image: docker:dind
container_name: 'docker_dind'
privileged: 'true'
command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false']
restart: 'unless-stopped'
gitea:
image: 'code.forgejo.org/forgejo/runner:3.5.0'
links:
- docker-in-docker
depends_on:
condition: service_started
container_name: 'runner'
DOCKER_HOST: tcp://docker-in-docker:2375
# User without root privileges, but with access to `/data`.
user: 1000:1000
volumes:
- /home/mafyuh/data:/data
command: '/bin/sh -c "sleep 5; forgejo-runner daemon"'