forgejo migration to postgresql + small nextcloud perfs things
This commit is contained in:
parent
dec9bc3d15
commit
a837706adf
2 changed files with 28 additions and 4 deletions
|
|
@ -3,13 +3,21 @@ networks:
|
|||
external: false
|
||||
|
||||
services:
|
||||
server:
|
||||
forgejo:
|
||||
image: codeberg.org/forgejo/forgejo:11
|
||||
container_name: forgejo
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
restart: always
|
||||
- FORGEJO__database__DB_TYPE=postgres
|
||||
- FORGEJO__database__HOST=forgejo_db:5432
|
||||
- FORGEJO__database__NAME=forgejo
|
||||
- FORGEJO__database__USER=forgejo
|
||||
- FORGEJO__database__SSL_MODE=disable
|
||||
- FORGEJO__database__PASSWD=${POSTGRES_PASSWORD}
|
||||
- FORGEJO__database__SCHEMA=public
|
||||
- FORGEJO__database__CHARSET=utf8
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- forgejo
|
||||
volumes:
|
||||
|
|
@ -23,3 +31,17 @@ services:
|
|||
tsdproxy.name: "git"
|
||||
tsdproxy.container_port: 3000
|
||||
tsdproxy.funnel: "true"
|
||||
|
||||
forgejo_db:
|
||||
image: postgres:16
|
||||
container_name: forgejo-postgres
|
||||
restart: always
|
||||
networks:
|
||||
- forgejo
|
||||
environment:
|
||||
- POSTGRES_DB=forgejo
|
||||
- POSTGRES_USER=forgejo
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_HOST_AUTH_METHOD=md5
|
||||
volumes:
|
||||
- ./postgres:/var/lib/postgresql/data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue