51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
name: forgejo
|
|
|
|
volumes:
|
|
next_certs:
|
|
external: true
|
|
|
|
networks:
|
|
forgejo:
|
|
external: false
|
|
next_proxy-tier:
|
|
external: true
|
|
|
|
services:
|
|
# Forgejo
|
|
server:
|
|
image: codeberg.org/forgejo/forgejo:11
|
|
container_name: forgejo
|
|
environment:
|
|
- LETSENCRYPT_HOST=git.palta.cyou
|
|
- VIRTUAL_HOST=git.palta.cyou
|
|
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- FORGEJO__database__DB_TYPE=postgres
|
|
- FORGEJO__database__HOST=db:5432
|
|
- FORGEJO__database__NAME=forgejo
|
|
- FORGEJO__database__USER=forgejo
|
|
- FORGEJO__database__PASSWD=forgejo
|
|
- FORGEJO__server__HTTP_PORT=80
|
|
restart: always
|
|
networks:
|
|
- forgejo
|
|
- next_proxy-tier
|
|
volumes:
|
|
- ./forgejo:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
expose:
|
|
- '3000'
|
|
|
|
db:
|
|
image: postgres:14
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=forgejo
|
|
- POSTGRES_PASSWORD=forgejo
|
|
- POSTGRES_DB=forgejo
|
|
networks:
|
|
- forgejo
|
|
volumes:
|
|
- ./postgres:/var/lib/postgresql/data
|