add redis to rpevent locks in forgejo
Some checks are pending
PVE2 Infrastructure Deploy / terraform (push) Waiting to run
Some checks are pending
PVE2 Infrastructure Deploy / terraform (push) Waiting to run
This commit is contained in:
parent
e1408c2077
commit
7a221e1516
1 changed files with 17 additions and 1 deletions
|
|
@ -1,4 +1,14 @@
|
|||
services:
|
||||
redis:
|
||||
image: redis:alpine
|
||||
restart: always
|
||||
networks:
|
||||
- fj_internal # MUST match the network your Forgejo container is on
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
forgejo:
|
||||
image: codeberg.org/forgejo/forgejo:9.0
|
||||
container_name: fj-node${FJ_NODE_ID}
|
||||
|
|
@ -13,7 +23,12 @@ services:
|
|||
- FORGEJO__server__DOMAIN=git.${TRAEFIK_DNS_SUFFIX}
|
||||
- FORGEJO__server__ROOT_URL=https://git.${TRAEFIK_DNS_SUFFIX}/
|
||||
- FORGEJO__server__SSH_PORT=2222
|
||||
|
||||
- GITEA__queue__TYPE=redis
|
||||
- GITEA__queue__CONN_STR=redis://redis:6379/0
|
||||
- GITEA__session__PROVIDER=redis
|
||||
- GITEA__session__PROVIDER_CONFIG=redis://redis:6379/1
|
||||
- GITEA__cache__ADAPTER=redis
|
||||
- GITEA__cache__HOST=redis://redis:6379/2
|
||||
volumes:
|
||||
- /git_data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
|
|
@ -22,6 +37,7 @@ services:
|
|||
- "3022:3000"
|
||||
- "2222:22"
|
||||
networks:
|
||||
- fj_internal
|
||||
- fj_external
|
||||
labels:
|
||||
- "traefik.enable=${TRAEFIK_ENABLE}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue