dev-int01/compose/forgejo/compose.yaml
2026-09-08 07:57:54 +02:00

55 lines
1.5 KiB
YAML

services:
forgejo-db:
image: mariadb:11
container_name: forgejo-db
restart: unless-stopped
environment:
- MARIADB_ROOT_PASSWORD=dasmussSafesein101
- MARIADB_DATABASE=forgejo
- MARIADB_USER=forgejo
- MARIADB_PASSWORD=dasmussSafesein101
- TZ=Europe/Zurich
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
volumes:
- /srv/data/mariadb-forgejo:/var/lib/mysql
networks:
- dev-nw
forgejo:
image: codeberg.org/forgejo/forgejo:11
container_name: forgejo
restart: unless-stopped
depends_on:
- forgejo-db
environment:
- USER_UID=1000
- USER_GID=1000
- TZ=Europe/Zurich
- FORGEJO__server__ROOT_URL=http://10.100.20.13:3000/
- FORGEJO__server__DISABLE_SSH=false
- FORGEJO__server__SSH_DOMAIN=10.100.20.13
- FORGEJO__server__SSH_PORT=2222
- FORGEJO__server__START_SSH_SERVER=true
- FORGEJO__server__SSH_LISTEN_PORT=2222
- FORGEJO__database__DB_TYPE=mysql
- FORGEJO__database__HOST=forgejo-db:3306
- FORGEJO__database__NAME=forgejo
- FORGEJO__database__USER=forgejo
- FORGEJO__database__PASSWD=dasmussSafesein101
- FORGEJO__repository__ROOT=/git/repos
ports:
- "3000:3000"
- "2222:2222"
volumes:
- /srv/data/forgejo:/data
- /srv/git/repos:/git/repos
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- dev-nw
networks:
dev-nw:
external: true