Wire up swarm version place holders
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e2456baf68
commit
26cc6c3bb3
23
.drone.yml
23
.drone.yml
@ -14,3 +14,26 @@ trigger:
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: deploy to swarm.autonomic.zone
|
||||
steps:
|
||||
- name: deployment
|
||||
image: decentral1se/drone-stack:19.03.8-override-compose
|
||||
settings:
|
||||
compose: docker-compose.yml
|
||||
host: tcp://swarm.autonomic.zone:2376
|
||||
override_compose: docker-compose.production.yml
|
||||
stack_name: gitea
|
||||
tlsverify: true
|
||||
environment:
|
||||
PLUGIN_CACERT:
|
||||
from_secret: docker_cacert
|
||||
PLUGIN_CERT:
|
||||
from_secret: docker_cert
|
||||
PLUGIN_KEY:
|
||||
from_secret: docker_key
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
|
18
README.md
18
README.md
@ -5,3 +5,21 @@
|
||||
> https://gitea.io/
|
||||
|
||||
> https://git.autonomic.zone
|
||||
|
||||
## Development
|
||||
|
||||
```bash
|
||||
$ git clone https://git.autonomic.zone/autonomic-cooperative/gitea && cd gitea
|
||||
$ python3 -m venv .venv && source .venv/bin/activate
|
||||
$ pip install -r requirements.txt
|
||||
$ docker-compose up
|
||||
```
|
||||
|
||||
Gitea dashboard:
|
||||
|
||||
> http://localhost:3000
|
||||
|
||||
## Production
|
||||
|
||||
1. Our [drone.autonomic.zone](https://drone.autonomic.zone/autonomic-cooperative/gitea/) configuration automatically deploys.
|
||||
1. For a manual deploy guide, see [this documentation](https://git.autonomic.zone/autonomic-cooperative/organising/wiki/working-with-docker-swarm).
|
||||
|
13
docker-compose.override.yml
Normal file
13
docker-compose.override.yml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea:1.11.4
|
||||
volumes:
|
||||
- git:/data
|
||||
ports:
|
||||
- 3000:3000
|
||||
|
||||
volumes:
|
||||
git:
|
31
docker-compose.production.yml
Normal file
31
docker-compose.production.yml
Normal file
@ -0,0 +1,31 @@
|
||||
---
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea:1.11.4
|
||||
volumes:
|
||||
- git:/data
|
||||
networks:
|
||||
- proxy
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
update_config:
|
||||
failure_action: rollback
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
||||
- "traefik.http.routers.gitea.rule=Host(`gitea.swarm.autonomic.zone`)"
|
||||
- "traefik.http.routers.gitea.entrypoints=web-secure"
|
||||
- "traefik.http.routers.gitea.tls.certresolver=staging"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
git:
|
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea:1.11.4
|
||||
ports:
|
||||
- "3000:3000"
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
docker-compose==1.7.2
|
Reference in New Issue
Block a user