diff --git a/drone/README.md b/drone/README.md new file mode 100644 index 0000000..e69de29 diff --git a/drone/docker-compose.yml b/drone/docker-compose.yml new file mode 100644 index 0000000..db1d8a5 --- /dev/null +++ b/drone/docker-compose.yml @@ -0,0 +1,23 @@ +version: "3" + +services: + server: + image: drone/drone:2.15.0 + container_name: drone + environment: + - DRONE_GITEE_SERVER=http://host.docker.internal:3000 + - DRONE_GITEE_CLIENT_ID=f7018cdd7c2a2515eb0cc3eeea039a3aeda0991a520c9e6f7eca37b97761de20 + - DRONE_GITEE_CLIENT_SECRET=a29f1465460f620d1238b6ebf207ae6778a6bfd074b3c7befe72d5f9647ed02c + - DRONE_GITEE_API_SERVER=http://host.docker.internal:3000/api/v5 + - DRONE_RPC_SECRET=13807911a5934895854d1cc0dceea44a + - DRONE_SERVER_HOST=localhost + - DRONE_SERVER_PROTO=http + restart: always + volumes: + - ./drone:/data + extra_hosts: + - "host.docker.internal:host-gateway" + # TODO: remove fixed host port number + ports: + - "7080:80" + - "7443:443" diff --git a/drone/run-this-first.sh b/drone/run-this-first.sh new file mode 100755 index 0000000..9b7ad28 --- /dev/null +++ b/drone/run-this-first.sh @@ -0,0 +1,2 @@ +#!/bin/sh +mkdir -p ./drone diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml index d4b9e42..39538ce 100644 --- a/gitea/docker-compose.yml +++ b/gitea/docker-compose.yml @@ -23,6 +23,7 @@ services: - ./gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro + # TODO: remove fixed host port number ports: - "3000:3000" - "222:22"