Browse Source

Drone 1.x migration

master
Christian Aust 1 month ago
parent
commit
0ccccb66ec
3 changed files with 56 additions and 15 deletions
  1. +1
    -1
      drone/.gitignore
  2. +47
    -0
      drone/docker-compose.0.8.yml
  3. +8
    -14
      drone/docker-compose.yml

+ 1
- 1
drone/.gitignore View File

@ -1,6 +1,6 @@
.bash_history
auth/htpasswd
server.env
*.env
drone/*.sqlite
registry/**/*
!registry/.keep

+ 47
- 0
drone/docker-compose.0.8.yml View File

@ -0,0 +1,47 @@
version: '2'
services:
registry:
restart: always
image: 'registry:2'
ports:
- "5000:5000"
environment:
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
volumes:
- ./registry:/var/lib/registry
- ./auth:/auth
frontend:
restart: always
image: konradkleine/docker-registry-frontend:v2
ports:
- "8004:80"
environment:
ENV_DOCKER_REGISTRY_HOST: registry
ENV_DOCKER_REGISTRY_PORT: 5000
drone-server:
image: drone/drone:0.8
ports:
- "8000:8000"
- 9000
volumes:
- ./drone:/var/lib/drone/
restart: always
env_file:
- server.env
drone-agent:
image: drone/agent:0.8
command: agent
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- server.env

+ 8
- 14
drone/docker-compose.yml View File

@ -1,4 +1,4 @@
version: '2'
version: '3.7'
services:
registry:
@ -14,28 +14,22 @@ services:
- ./registry:/var/lib/registry
- ./auth:/auth
frontend:
restart: always
image: konradkleine/docker-registry-frontend:v2
ports:
- "8004:80"
environment:
ENV_DOCKER_REGISTRY_HOST: registry
ENV_DOCKER_REGISTRY_PORT: 5000
drone-server:
image: drone/drone:0.8
image: drone/drone:1
ports:
- "8000:8000"
- "8000:80"
- 9000
volumes:
- ./drone:/var/lib/drone/
- ./drone:/var/lib/drone
restart: always
environment:
- DRONE_USER_CREATE=username:christian,admin:true
- DRONE_AGENTS_ENABLED=true
env_file:
- server.env
drone-agent:
image: drone/agent:0.8
image: drone/drone-runner-docker:1
command: agent
restart: always

Loading…
Cancel
Save