Compare commits
12 Commits
sqlite
...
healthchec
| Author | SHA1 | Date | |
|---|---|---|---|
| 2717590054 | |||
| d7637a6e6e | |||
| 16633d97e1 | |||
| 10be86624f | |||
| 49b4a117c2 | |||
| 3101458354 | |||
| b0ff30e72b | |||
| cf9676fd5f | |||
|
1ebc2c2eca
|
|||
|
aded3647a9
|
|||
|
24c457a5d4
|
|||
| 22e218107e |
52
.drone.yml
52
.drone.yml
@ -2,37 +2,39 @@
|
||||
kind: pipeline
|
||||
name: deploy to swarm-test.autonomic.zone
|
||||
steps:
|
||||
- name: deployment
|
||||
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
||||
settings:
|
||||
host: swarm-test.autonomic.zone
|
||||
stack: example_com # UPDATE ME
|
||||
generate_secrets: true
|
||||
purge: true
|
||||
deploy_key:
|
||||
from_secret: drone_ssh_swarm_test
|
||||
networks:
|
||||
- proxy
|
||||
environment:
|
||||
DOMAIN: example.swarm-test.autonomic.zone # UPDATE ME
|
||||
STACK_NAME: example_com # UPDATE ME
|
||||
LETS_ENCRYPT_ENV: production
|
||||
- name: deployment
|
||||
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
||||
settings:
|
||||
host: swarm-test.autonomic.zone
|
||||
stack: garage
|
||||
generate_secrets: true
|
||||
purge: true
|
||||
deploy_key:
|
||||
from_secret: drone_ssh_swarm_test
|
||||
networks:
|
||||
- proxy
|
||||
compose: "compose.yml"
|
||||
environment:
|
||||
DOMAIN: garage.swarm-test.autonomic.zone
|
||||
STACK_NAME: garage
|
||||
LETS_ENCRYPT_ENV: production
|
||||
SECRET_RPC_SECRET_VERSION: v1
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
- main
|
||||
---
|
||||
kind: pipeline
|
||||
name: generate recipe catalogue
|
||||
steps:
|
||||
- name: release a new version
|
||||
image: plugins/downstream
|
||||
settings:
|
||||
server: https://build.coopcloud.tech
|
||||
token:
|
||||
from_secret: drone_abra-bot_token
|
||||
fork: true
|
||||
repositories:
|
||||
- coop-cloud/auto-recipes-catalogue-json
|
||||
- name: release a new version
|
||||
image: plugins/downstream
|
||||
settings:
|
||||
server: https://build.coopcloud.tech
|
||||
token:
|
||||
from_secret: drone_abra-bot_token
|
||||
fork: true
|
||||
repositories:
|
||||
- toolshed/auto-recipes-catalogue-json
|
||||
|
||||
trigger:
|
||||
event: tag
|
||||
|
||||
@ -5,7 +5,7 @@ DOMAIN=garage.example.com
|
||||
LETS_ENCRYPT_ENV=production
|
||||
COMPOSE_FILE="compose.yml"
|
||||
|
||||
SECRET_RPC_SECRET_VERSION=v1 # length=32 charset=hex
|
||||
SECRET_RPC_SECRET_VERSION=v1 # length=64 charset=hex
|
||||
|
||||
# Changing the replication factor after initial deployment is not
|
||||
# supported and requires deleting the existing cluster layout metadata.
|
||||
|
||||
14
compose.yml
14
compose.yml
@ -3,12 +3,14 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: dxflrs/garage:v2.1.0
|
||||
image: dxflrs/garage:v2.3.0
|
||||
hostname: "${DOMAIN}"
|
||||
configs:
|
||||
- source: garage_conf
|
||||
target: /etc/garage.toml
|
||||
secrets:
|
||||
- rpc_secret
|
||||
- source: rpc_secret
|
||||
mode: 0600
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
@ -24,13 +26,19 @@ services:
|
||||
- "traefik.tcp.routers.${STACK_NAME}-rpc.rule=HostSNI(`*`)"
|
||||
- "traefik.tcp.routers.${STACK_NAME}-rpc.entrypoints=garage-rpc"
|
||||
- "traefik.tcp.services.${STACK_NAME}-rpc.loadbalancer.server.port=3901"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.0.1+2.1.0"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.0.2+v2.3.0"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.pre-hook=/garage meta snapshot --all"
|
||||
- "backupbot.backup.path=/var/lib/garage/meta/snapshots/,/var/lib/garage/meta/cluster_layout,/var/lib/garage/meta/data_layout,/var/lib/garage/meta/node_key,/var/lib/garage/meta/node_key.pub"
|
||||
volumes:
|
||||
- "${LOCAL_FOLDER_META:-meta}:/var/lib/garage/meta"
|
||||
- "${LOCAL_FOLDER_DATA:-data}:/var/lib/garage/data"
|
||||
healthcheck:
|
||||
test: ["CMD", "/garage", "status"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 10s
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
|
||||
@ -15,7 +15,7 @@ compression_level = 2
|
||||
rpc_bind_addr = "[::]:3901"
|
||||
rpc_public_addr = "{{ env "DOMAIN" }}:3901"
|
||||
rpc_addr = "[::]:3901"
|
||||
rpc_secret = "{{ secret "rpc_secret" }}"
|
||||
rpc_secret_file = "/run/secrets/rpc_secret"
|
||||
|
||||
{{ if ne (env "BOOTSTRAP_ID") "" }}
|
||||
bootstrap_peers = [
|
||||
|
||||
Reference in New Issue
Block a user