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
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue