2022-12-26 22:56:37 +09:00
|
|
|
services:
|
2022-12-27 00:12:21 +09:00
|
|
|
caddy:
|
2023-05-02 20:06:38 +00:00
|
|
|
image: caddy:2.6.4-alpine@sha256:4dfec6c3b22c36b63ea4a3633c7cdbdaa9926d1324c27db2b0e2b70ef9cd105a
|
2022-12-26 22:56:37 +09:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
2022-12-27 00:12:21 +09:00
|
|
|
- "443:443/udp"
|
|
|
|
- "443:443/tcp"
|
|
|
|
- "127.0.0.1:2019:2019"
|
|
|
|
command: caddy reverse-proxy --from ${SERVER_HOST:?} --to http://drone
|
|
|
|
volumes:
|
|
|
|
- caddy_data:/data
|
|
|
|
- caddy_config:/config
|
|
|
|
drone:
|
2023-04-25 12:02:49 +00:00
|
|
|
image: drone/drone:2.17.0@sha256:7a5be0c8824d405ae838f2ab7cbaff021873a63415ecb5004b333d0ffe0388ea
|
2022-12-27 00:12:21 +09:00
|
|
|
restart: unless-stopped
|
2022-12-26 22:56:37 +09:00
|
|
|
environment:
|
2022-12-27 02:13:23 +09:00
|
|
|
DRONE_CRON_INTERVAL: 1m
|
2022-12-26 22:56:37 +09:00
|
|
|
DRONE_GITEA_SERVER: ${DRONE_GITEA_SERVER:?}
|
|
|
|
DRONE_GITEA_CLIENT_ID: ${DRONE_GITEA_CLIENT_ID:?}
|
|
|
|
DRONE_GITEA_CLIENT_SECRET: ${DRONE_GITEA_CLIENT_SECRET:?}
|
|
|
|
DRONE_RPC_SECRET: ${DRONE_RPC_SECRET:?}
|
|
|
|
DRONE_SERVER_HOST: ${DRONE_SERVER_HOST:?}
|
|
|
|
DRONE_SERVER_PROTO: ${DRONE_SERVER_PROTO:?}
|
2022-12-27 00:24:07 +09:00
|
|
|
DRONE_USER_CREATE: ${DRONE_USER_CREATE:?}
|
2022-12-26 22:56:37 +09:00
|
|
|
volumes:
|
|
|
|
- drone_data_v2:/data
|
2022-12-26 23:39:15 +09:00
|
|
|
runner:
|
2023-01-06 12:07:57 +00:00
|
|
|
image: drone/drone-runner-docker:1.8.3@sha256:513891eb6c8b920c48266f6881402b9df5e3f7ec874a12cd87146ebfd1105bed
|
2022-12-26 23:39:15 +09:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:3000:3000"
|
|
|
|
environment:
|
|
|
|
DRONE_RUNNER_NAME: default
|
|
|
|
DRONE_RPC_PROTO: http
|
|
|
|
DRONE_RPC_HOST: drone
|
|
|
|
DRONE_RPC_SECRET: ${DRONE_RPC_SECRET:?}
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2022-12-27 16:14:50 +09:00
|
|
|
system-runner:
|
2023-01-06 12:07:57 +00:00
|
|
|
image: drone/drone-runner-docker:1.8.3@sha256:513891eb6c8b920c48266f6881402b9df5e3f7ec874a12cd87146ebfd1105bed
|
2022-12-27 16:14:50 +09:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:5000:3000"
|
|
|
|
environment:
|
|
|
|
DRONE_RUNNER_NAME: system-runner
|
|
|
|
DRONE_RUNNER_LABELS: instance:system
|
|
|
|
DRONE_RPC_PROTO: http
|
|
|
|
DRONE_RPC_HOST: drone
|
|
|
|
DRONE_RPC_SECRET: ${DRONE_RPC_SECRET:?}
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2022-12-26 22:56:37 +09:00
|
|
|
volumes:
|
2022-12-27 00:12:21 +09:00
|
|
|
caddy_data:
|
|
|
|
caddy_config:
|
2022-12-26 22:56:37 +09:00
|
|
|
drone_data_v2:
|