2024-07-12 23:57:29 -04:00
|
|
|
services:
|
|
|
|
twingate-famous-alligator:
|
2024-09-27 14:00:44 -04:00
|
|
|
image: twingate/connector@sha256:f5aded82f662144c56c87e4238ea4a20abcc525edc5ad7cdecdac187cf274520
|
2024-07-12 23:57:29 -04:00
|
|
|
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:
|
2024-11-01 03:01:33 -04:00
|
|
|
image: 'code.forgejo.org/forgejo/runner:4.0.1'
|
2024-07-12 23:57:29 -04:00
|
|
|
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 "sleep 5; forgejo-runner daemon"'
|