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