add caddy service
This commit is contained in:
parent
753e8f55ee
commit
738828612a
2 changed files with 16 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
SERVER_HOST=gamma.fogtype.com
|
||||
DRONE_GITEA_SERVER=https://git.fogtype.com/
|
||||
DRONE_GITEA_CLIENT_ID=
|
||||
DRONE_GITEA_CLIENT_SECRET=
|
||||
DRONE_RPC_SECRET=
|
||||
DRONE_SERVER_HOST=gamma.fogtype.com
|
||||
DRONE_SERVER_HOST=${SERVER_HOST}
|
||||
DRONE_SERVER_PROTO=https
|
||||
|
|
18
compose.yml
18
compose.yml
|
@ -1,12 +1,20 @@
|
|||
services:
|
||||
drone:
|
||||
image: drone/drone:2
|
||||
caddy:
|
||||
image: caddy:2.6.2-alpine@sha256:25a0097607868fb05a89a5ab9fea2f2ea4cecdc89d887d7dcee8c778a21b9e1f
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "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:
|
||||
image: drone/drone:2
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DRONE_TLS_AUTOCERT: "true"
|
||||
DRONE_GITEA_SERVER: ${DRONE_GITEA_SERVER:?}
|
||||
DRONE_GITEA_CLIENT_ID: ${DRONE_GITEA_CLIENT_ID:?}
|
||||
DRONE_GITEA_CLIENT_SECRET: ${DRONE_GITEA_CLIENT_SECRET:?}
|
||||
|
@ -29,4 +37,6 @@ services:
|
|||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
volumes:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
drone_data_v2:
|
||||
|
|
Reference in a new issue