15 lines
359 B
YAML
15 lines
359 B
YAML
version: '3.3'
|
|
services:
|
|
gogs_runner:
|
|
image: zhaoyingbo/gogs-runner:latest
|
|
container_name: gogs_runner
|
|
environment:
|
|
- TZ=Asia/Shanghai # 时区
|
|
ports:
|
|
- "3001:3001"
|
|
volumes:
|
|
- ~/.ssh:/root/.ssh
|
|
- /usr/bin/docker:/usr/bin/docker
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
user: root
|
|
restart: always |