Update twingate/docker-compose.yml

This commit is contained in:
Matt Reeves 2024-05-29 01:20:47 +00:00
parent 8274787c81
commit c515d3adac

View file

@ -11,3 +11,28 @@ services:
- TWINGATE_LABEL_DEPLOYED_BY=docker - TWINGATE_LABEL_DEPLOYED_BY=docker
sysctls: sysctls:
- net.ipv4.ping_group_range=0 2147483647 - 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.4.1'
links:
- docker-in-docker
depends_on:
docker-in-docker:
condition: service_started
container_name: 'runner'
environment:
DOCKER_HOST: tcp://docker-in-docker:2375
# User without root privileges, but with access to `/data`.
user: 1000:1000
volumes:
- /home/mafyuh/data:/data
restart: 'unless-stopped'
command: '/bin/sh -c "while : ; do sleep 1 ; done ;"'