add slave profile
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
44152f876d
commit
a59688fab4
1 changed files with 64 additions and 0 deletions
|
@ -112,6 +112,70 @@ services:
|
|||
"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
|
||||
# image: mcaptcha/mcaptcha:latest
|
||||
|
|
Loading…
Reference in a new issue