|
|
@@ -59,6 +59,38 @@ UPDATE repos SET repo_clone_url = 'http://gitea:3000/benoit/gitea-drone.git' WHE
|
|
|
* `DRONE_SERVER_HOST` is the host address from the outside (not for inside the Docker network)
|
|
|
* Forgot to put Drone Server & Client on the same network as Gitea & MySQL :sweat_smile:
|
|
|
|
|
|
+## Ideas
|
|
|
+
|
|
|
+To get same hostnames inside containers/VMs than outside
|
|
|
+
|
|
|
+* Using Acrylic, localdns, dnsmasq
|
|
|
+* SSH tunnel
|
|
|
+* Reverse proxy from nginx/apache/caddy on localhost
|
|
|
+
|
|
|
+## Stuff that helped
|
|
|
+
|
|
|
+* [[SOLVED] Making drone listen on port different than 443](https://discourse.drone.io/t/solved-making-drone-listen-on-port-different-than-443/8274)
|
|
|
+* [Drone Server / Gitea](https://docs.drone.io/server/provider/gitea/)
|
|
|
+
|
|
|
+## Run Drone Server without Compose
|
|
|
+```
|
|
|
+docker run \
|
|
|
+ --volume=/var/lib/drone:/data \
|
|
|
+ --env=DRONE_GITEA_SERVER=https://try.gitea.io \
|
|
|
+ --env=DRONE_GITEA_CLIENT_ID=05136e57d80189bef462 \
|
|
|
+ --env=DRONE_GITEA_CLIENT_SECRET=7c229228a77d2cbddaa61ddc78d45e \
|
|
|
+ --env=DRONE_RPC_SECRET=super-duper-secret \
|
|
|
+ --env=DRONE_SERVER_HOST=drone:8080 \
|
|
|
+ --env=DRONE_SERVER_PORT=:8080 \
|
|
|
+ --env=DRONE_SERVER_PROTO=https \
|
|
|
+ --publish=8080:8080 \
|
|
|
+ --publish=443:443 \
|
|
|
+ --restart=always \
|
|
|
+ --detach=true \
|
|
|
+ --name=drone \
|
|
|
+ drone/drone:2
|
|
|
+```
|
|
|
+
|
|
|
## TODO
|
|
|
|
|
|
* Don't hardcode secrets in Compose file!
|