78 lines
1.5 KiB
YAML
78 lines
1.5 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
image: 'code.forgejo.org/forgejo/runner:6.2.2'
|
|
environment:
|
|
- DOCKER_HOST=tcp://socket-proxy:2375
|
|
- RUNNER_CAPACITY
|
|
configs:
|
|
- source: runner_conf
|
|
target: /config.yml
|
|
- source: entrypoint
|
|
target: /custom-entrypoint.sh
|
|
mode: 0555
|
|
volumes:
|
|
- "data:/data"
|
|
deploy:
|
|
labels:
|
|
- "coop-cloud.${STACK_NAME}.version=1.1.0+6.2.2"
|
|
networks:
|
|
- internal
|
|
ports:
|
|
- "44847:44847"
|
|
entrypoint: /custom-entrypoint.sh
|
|
|
|
socket-proxy:
|
|
image: lscr.io/linuxserver/socket-proxy:1.26.1-r0-ls15
|
|
environment:
|
|
- ALLOW_START=1
|
|
- ALLOW_STOP=1
|
|
- ALLOW_RESTARTS=1
|
|
- AUTH=1
|
|
- BUILD=1
|
|
- COMMIT=1
|
|
- CONFIGS=1
|
|
- CONTAINERS=1
|
|
- DISABLE_IPV6=0
|
|
- DISTRIBUTION=0
|
|
- EVENTS=1
|
|
- EXEC=1
|
|
- IMAGES=1
|
|
- INFO=1
|
|
- NETWORKS=1
|
|
- NODES=1
|
|
- PING=1
|
|
- POST=1
|
|
- PLUGINS=1
|
|
- SECRETS=1
|
|
- SERVICES=1
|
|
- SESSION=1
|
|
- SWARM=1
|
|
- SYSTEM=1
|
|
- TASKS=1
|
|
- VERSION=1
|
|
- VOLUMES=1
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
networks:
|
|
- internal
|
|
ports:
|
|
- "2375:2375"
|
|
|
|
volumes:
|
|
data:
|
|
|
|
networks:
|
|
internal:
|
|
|
|
configs:
|
|
runner_conf:
|
|
name: ${STACK_NAME}_runner_${RUNNER_CONF_VERSION}
|
|
file: config.yml.tmpl
|
|
template_driver: golang
|
|
entrypoint:
|
|
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
|
|
file: entrypoint.sh.tmpl
|
|
template_driver: golang
|