maj split gitea et drone
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# DRONE
|
||||
DOMAIN="git.mondomaine.tld"
|
||||
DRONE_GITEA_SERVER="https://git.mondomaine.tld"
|
||||
DRONE_GITEA_CLIENT_ID=""
|
||||
DRONE_GITEA_CLIENT_SECRET=""
|
||||
DRONE_RPC_SECRET=""
|
||||
DRONE_GITEA_GIT_USERNAME=""
|
||||
DRONE_GITEA_GIT_PASSWORD=""
|
||||
@@ -0,0 +1,63 @@
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
# DRONE SERVER
|
||||
drone-server:
|
||||
image: drone/drone:2.16
|
||||
container_name: drone-server
|
||||
ports:
|
||||
- "3001:80"
|
||||
- "9001:9000"
|
||||
volumes:
|
||||
- ./drone-srv:/var/lib/drone/
|
||||
restart: always
|
||||
environment:
|
||||
- DRONE_OPEN=true
|
||||
- DRONE_SERVER_HOST=drone.${DOMAIN}
|
||||
- DRONE_GITEA=true
|
||||
- DRONE_GITEA_SERVER=${DRONE_GITEA_SERVER}
|
||||
- DRONE_NETWORK=gitea
|
||||
- DRONE_GITEA_SKIP_VERIFY=true
|
||||
- DRONE_TLS_AUTOCERT=false
|
||||
- DRONE_GITEA_GIT_USERNAME=${DRONE_GITEA_GIT_USERNAME}
|
||||
- DRONE_GITEA_GIT_PASSWORD=${DRONE_GITEA_GIT_PASSWORD}
|
||||
- DRONE_GIT_USERNAME=${DRONE_GITEA_GIT_USERNAME}
|
||||
- DRONE_GIT_PASSWORD=${DRONE_GITEA_GIT_PASSWORD}
|
||||
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
|
||||
- DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID}
|
||||
- DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET}
|
||||
- DRONE_ADMIN=${DRONE_GITEA_GIT_USERNAME}
|
||||
- DRONE_USER_CREATE="username:${DRONE_GITEA_GIT_USERNAME},machine:false,admin:true,token:${DRONE_RPC_SECRET}"
|
||||
- DRONE_SERVER_PROTO=https
|
||||
networks:
|
||||
- gitea
|
||||
|
||||
# DRONE RUNNER
|
||||
drone-runner:
|
||||
image: drone/drone-runner-docker:1.8.2
|
||||
container_name: drone-runner
|
||||
restart: always
|
||||
depends_on:
|
||||
- drone-server
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./drone-runner:/drone/src
|
||||
environment:
|
||||
- DRONE_RPC_HOST=drone.${DOMAIN}
|
||||
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
|
||||
- DRONE_RPC_PROTO=https
|
||||
- DRONE_RUNNER_NAME="drone-runner"
|
||||
- DRONE_RUNNER_CAPACITY=2
|
||||
- DRONE_RUNNER_VOLUMES=/var/run/docker.sock:/var/run/docker.sock
|
||||
ports:
|
||||
- "3002:3000"
|
||||
networks:
|
||||
- gitea
|
||||
|
||||
volumes:
|
||||
drone-srv:
|
||||
drone-runner:
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
name: gitea
|
||||
Reference in New Issue
Block a user