Compare commits
9 Commits
sqlite
...
rpc_secret
| Author | SHA1 | Date | |
|---|---|---|---|
| 10be86624f | |||
| 49b4a117c2 | |||
| 3101458354 | |||
| b0ff30e72b | |||
| cf9676fd5f | |||
|
1ebc2c2eca
|
|||
|
aded3647a9
|
|||
|
24c457a5d4
|
|||
| 22e218107e |
@ -5,7 +5,7 @@ DOMAIN=garage.example.com
|
|||||||
LETS_ENCRYPT_ENV=production
|
LETS_ENCRYPT_ENV=production
|
||||||
COMPOSE_FILE="compose.yml"
|
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
|
# Changing the replication factor after initial deployment is not
|
||||||
# supported and requires deleting the existing cluster layout metadata.
|
# supported and requires deleting the existing cluster layout metadata.
|
||||||
|
|||||||
@ -3,12 +3,14 @@ version: "3.8"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: dxflrs/garage:v2.1.0
|
image: dxflrs/garage:v2.3.0
|
||||||
|
hostname: "${DOMAIN}"
|
||||||
configs:
|
configs:
|
||||||
- source: garage_conf
|
- source: garage_conf
|
||||||
target: /etc/garage.toml
|
target: /etc/garage.toml
|
||||||
secrets:
|
secrets:
|
||||||
- rpc_secret
|
- source: rpc_secret
|
||||||
|
mode: 0600
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
- internal
|
- internal
|
||||||
@ -24,7 +26,7 @@ services:
|
|||||||
- "traefik.tcp.routers.${STACK_NAME}-rpc.rule=HostSNI(`*`)"
|
- "traefik.tcp.routers.${STACK_NAME}-rpc.rule=HostSNI(`*`)"
|
||||||
- "traefik.tcp.routers.${STACK_NAME}-rpc.entrypoints=garage-rpc"
|
- "traefik.tcp.routers.${STACK_NAME}-rpc.entrypoints=garage-rpc"
|
||||||
- "traefik.tcp.services.${STACK_NAME}-rpc.loadbalancer.server.port=3901"
|
- "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=true"
|
||||||
- "backupbot.backup.pre-hook=/garage meta snapshot --all"
|
- "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"
|
- "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"
|
||||||
|
|||||||
@ -15,7 +15,7 @@ compression_level = 2
|
|||||||
rpc_bind_addr = "[::]:3901"
|
rpc_bind_addr = "[::]:3901"
|
||||||
rpc_public_addr = "{{ env "DOMAIN" }}:3901"
|
rpc_public_addr = "{{ env "DOMAIN" }}:3901"
|
||||||
rpc_addr = "[::]:3901"
|
rpc_addr = "[::]:3901"
|
||||||
rpc_secret = "{{ secret "rpc_secret" }}"
|
rpc_secret_file = "/run/secrets/rpc_secret"
|
||||||
|
|
||||||
{{ if ne (env "BOOTSTRAP_ID") "" }}
|
{{ if ne (env "BOOTSTRAP_ID") "" }}
|
||||||
bootstrap_peers = [
|
bootstrap_peers = [
|
||||||
|
|||||||
Reference in New Issue
Block a user