feat: added docker-compose.yml + env files
This commit is contained in:
parent
7bbf94a3af
commit
9ae38b5851
38
docker-compose.yml
Normal file
38
docker-compose.yml
Normal file
@ -0,0 +1,38 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
drone-server:
|
||||
image: drone/drone:latest
|
||||
ports:
|
||||
- 127.0.0.1:8000:8000
|
||||
volumes:
|
||||
- /var/lib/drone:/var/lib/drone
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
restart: always
|
||||
env_file:
|
||||
- /etc/drone/server.env
|
||||
|
||||
drone-runner-docker:
|
||||
image: drone/drone-runner-docker:latest
|
||||
depends_on:
|
||||
- drone-server
|
||||
ports:
|
||||
- 127.0.0.1:5000:5000
|
||||
- 127.0.0.1:3333:3000
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
restart: always
|
||||
env_file:
|
||||
- /etc/drone/runner-docker.env
|
||||
|
||||
drone-gc:
|
||||
image: drone/gc:latest
|
||||
depends_on:
|
||||
- drone-server
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
restart: always
|
||||
environment:
|
||||
- GC_DEBUG=true
|
||||
- GC_CACHE=50gb
|
||||
- GC_INTERVAL=720m
|
7
runner-docker.env
Normal file
7
runner-docker.env
Normal file
@ -0,0 +1,7 @@
|
||||
DRONE_RPC_PROTO=https
|
||||
DRONE_RPC_HOST=drone.dotya.ml
|
||||
DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
|
||||
DRONE_RUNNER_CAPACITY=4
|
||||
DRONE_RUNNER_NAME=${HOSTNAME}
|
||||
DRONE_UI_DISABLE=false
|
||||
DRONE_LOGS_DEBUG=true
|
26
server.env
Normal file
26
server.env
Normal file
@ -0,0 +1,26 @@
|
||||
# Gitea settings
|
||||
DRONE_GITEA_SERVER=https://git.dotya.ml
|
||||
DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID}
|
||||
DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_SKIP_VERIFY}
|
||||
DRONE_GITEA_SKIP_VERIFY=false
|
||||
|
||||
# Service settings
|
||||
DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
|
||||
DRONE_SERVER_HOST=drone.dotya.ml
|
||||
DRONE_SERVER_PORT=:8000
|
||||
DRONE_SERVER_PROTO=https
|
||||
DRONE_GIT_ALWAYS_AUTH=true
|
||||
DRONE_DATABASE_SECRET=${DRONE_DATABASE_SECRET}
|
||||
DRONE_CRON_INTERVAL=15m
|
||||
DRONE_LOGS_PRETTY=true
|
||||
DRONE_LOGS_COLOR=true
|
||||
|
||||
# ssl
|
||||
DRONE_HTTP_SSL_HOST=https://drone.dotya.ml
|
||||
DRONE_HTTP_STS_SECONDS=63072000
|
||||
DRONE_HTTP_STS_PRELOAD=true
|
||||
|
||||
# Registration settings
|
||||
DRONE_OPEN=true
|
||||
DRONE_ADMIN=${DRONE_ADMIN}
|
||||
DRONE_USER_CREATE=username:${DRONE_ADMIN},admin:true
|
Loading…
Reference in New Issue
Block a user