Add files

This commit is contained in:
BBaoVanC 2021-11-09 09:42:13 -06:00
parent 6acb17e4a6
commit e4c344b38c
2 changed files with 41 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.env
data/

39
docker-compose.yml Normal file
View File

@ -0,0 +1,39 @@
version: "2.1"
services:
server:
image: drone/drone:latest
environment:
- DRONE_GITEA_SERVER=https://git.bbaovanc.com
- DRONE_GITEA_CLIENT_ID
- DRONE_GITEA_CLIENT_SECRET
- DRONE_RPC_SECRET
- DRONE_SERVER_HOST=drone.bbaovanc.com
- DRONE_SERVER_PROTO=https
- DRONE_GIT_ALWAYS_AUTH=true
- DRONE_USER_FILTER=bbaovanc
- DRONE_LOGS_TEXT=true
- DRONE_LOGS_PRETTY=true
- DRONE_LOGS_COLOR=true
volumes:
- ./data:/data
restart: always
ports:
- 8080:80
- 8443:443
runner:
image: drone/drone-runner-docker:latest
environment:
- DRONE_RPC_PROTO=https
- DRONE_RPC_HOST=drone.bbaovanc.com
- DRONE_RPC_SECRET
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=bbaosrv
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
ports:
- 3002:3000
depends_on:
- server