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
|
||||
|
|
|
|||
|
|
@ -19,8 +19,10 @@ services:
|
|||
- REDIS_HOST=redis
|
||||
- PHP_MEMORY_LIMIT=4G
|
||||
- PHP_UPLOAD_LIMIT=64G
|
||||
- APACHE_BODY_LIMIT=0
|
||||
- TRUSTED_PROXIES=100.65.19.39
|
||||
- PHP_OPCACHE_ENABLE=1
|
||||
- PHP_OPCACHE_MEMORY_CONSUMPTION=256
|
||||
- PHP_OPCACHE_MAX_ACCELERATED_FILES=100000
|
||||
- TRUSTED_PROXIES=100.64.0.0/10
|
||||
- OVERWRITEPROTOCOL=https
|
||||
- OVERWRITEHOST=cloud.rufous-trench.ts.net
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue