You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
874 B
YAML
31 lines
874 B
YAML
# docker-compose.yml
|
|
# Docker Hub: https://codeberg.org/forgejo/forgejo
|
|
# Documentation: https://forgejo.org/docs/latest/
|
|
# The WebUI can be found at http://<HOST_IP>:<WEBUI_PORT>
|
|
# Forgejo is a fork of Gitea, and may still contain references to the same
|
|
|
|
networks:
|
|
<NETWORK_NAME>:
|
|
external: true
|
|
|
|
services:
|
|
forgejo:
|
|
container_name: forgejo
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- GITEA_APP_INI=/data/gitea/conf/app.ini
|
|
- GITEA_TEMP=/data/gitea/tmp
|
|
- GITEA_CUSTOM=/data/gitea
|
|
- GITEA_WORK_DIR=/app/gitea/gitea
|
|
image: codeberg.org/forgejo/forgejo:<VERSION_TAG>
|
|
networks:
|
|
- <NETWORK_NAME>
|
|
ports:
|
|
- "3000:3000" # WebUI Port
|
|
- "2222:22" # SSH Port
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro |