2023-02-17 23:54:17 +01:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
# https://codeberg.org/forgejo/-/packages/container/forgejo/versions
|
|
|
|
# https://docs.gitea.io/en-us/install-with-docker/
|
2023-02-18 15:25:31 +01:00
|
|
|
# https://docs.gitea.io/en-us/customizing-gitea/
|
|
|
|
# https://docs.gitea.io/en-us/config-cheat-sheet/
|
2023-02-17 23:54:17 +01:00
|
|
|
# https://goauthentik.io/integrations/services/gitea/
|
|
|
|
|
|
|
|
# set FORGEJO_SETUP_LOCK = false for inital setup in .env
|
|
|
|
# create admin account: during setup at bottom of page
|
|
|
|
|
|
|
|
networks:
|
|
|
|
forgejo:
|
|
|
|
|
|
|
|
services:
|
|
|
|
forgejo:
|
2024-04-25 17:37:11 +02:00
|
|
|
image: codeberg.org/forgejo/forgejo:7.0
|
2023-02-17 23:54:17 +01:00
|
|
|
container_name: forgejo
|
|
|
|
restart: "${RESTART:-no}"
|
|
|
|
hostname: git
|
|
|
|
domainname: ${BASE_DOMAIN}
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
|
2023-09-13 22:33:47 +02:00
|
|
|
- FORGEJO__database__DB_TYPE=postgres
|
|
|
|
- FORGEJO__database__HOST=pg-forgejo
|
|
|
|
- FORGEJO__database__NAME=forgejo
|
|
|
|
- FORGEJO__database__USER=forgejo
|
|
|
|
- FORGEJO__database__PASSWD=${FORGEJO_PG_PWD:-forgejo}
|
2023-02-17 23:54:17 +01:00
|
|
|
ports:
|
2023-09-20 00:30:04 +02:00
|
|
|
- '${FORGEJO_SSH_PORT}:23'
|
2023-02-17 23:54:17 +01:00
|
|
|
volumes:
|
|
|
|
- ${BASE_DIR:-/srv}/forgejo/data:/data
|
2024-01-06 14:35:55 +01:00
|
|
|
- ./forgejo/app.ini:/data/gitea/conf/app.ini:ro
|
2023-02-17 23:54:17 +01:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
depends_on:
|
|
|
|
- pg-forgejo
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- mail
|
|
|
|
- forgejo
|
|
|
|
|
|
|
|
pg-forgejo:
|
2024-01-03 18:56:26 +01:00
|
|
|
image: postgres:16-alpine
|
2023-02-17 23:54:17 +01:00
|
|
|
container_name: pg-forgejo
|
|
|
|
restart: "${RESTART:-no}"
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=forgejo
|
|
|
|
- POSTGRES_USER=forgejo
|
|
|
|
- POSTGRES_PASSWORD=${FORGEJO_PG_PWD:-forgejo}
|
|
|
|
volumes:
|
|
|
|
- ${BASE_DIR:-/srv}/forgejo/psql:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- forgejo
|