From a59688fab470c826becda1f9651043ab766162af Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Sun, 3 Nov 2024 01:36:32 -0500 Subject: [PATCH] add slave profile Signed-off-by: eternal-flame-AD --- compose_example.yml | 64 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/compose_example.yml b/compose_example.yml index 7701ff2ec5..95088f4aba 100644 --- a/compose_example.yml +++ b/compose_example.yml @@ -111,6 +111,70 @@ services: "--postgres-target", "db:5432", ] + + replikey-postgres-slave: + restart: always + image: l1drm/replikey:latest + profiles: [replikey-slave] + user: "${MISSKEY_UID}:${MISSKEY_GID}" + links: + - db + - redis + networks: + - internal_network + - external_network + ports: + # - "4001:4001" + volumes: + - ./replikey:/etc/replikey:ro + command: [ + "network", + "forward-proxy", + "--listen", + "0.0.0.0:4001", + "--sni", + "${MTLS_POSTGRES_SNI}", + "--target", + "db:5432", + "--cert", + "/etc/replikey/cert.pem", + "--key", + "/etc/replikey/key.pem", + "--ca", + "/etc/replikey/ca.pem", + ] + + replikey-redis-slave: + restart: always + image: l1drm/replikey:latest + profiles: [replikey-slave] + user: "${MISSKEY_UID}:${MISSKEY_GID}" + links: + - db + - redis + networks: + - internal_network + - external_network + ports: + # - "4002:4002" + volumes: + - ./replikey:/etc/replikey:ro + command: [ + "network", + "forward-proxy", + "--listen", + "0.0.0.0:4002", + "--sni", + "${MTLS_REDIS_SNI}", + "--target", + "redis:6379", + "--cert", + "/etc/replikey/cert.pem", + "--key", + "/etc/replikey/key.pem", + "--ca", + "/etc/replikey/ca.pem", + ] # mcaptcha: # restart: always