29 lines
925 B
YAML
29 lines
925 B
YAML
# Forgejo Git Service Configuration
|
|
services:
|
|
forgejo:
|
|
# Basic container configuration
|
|
container_name: forgejo
|
|
image: codeberg.org/forgejo/forgejo:11.0.3-rootless
|
|
restart: unless-stopped
|
|
user: ${PUID}:${PGID} # Runs as specified user/group
|
|
|
|
# Persistent storage configuration
|
|
volumes:
|
|
- ${APPDATA_PATH}/forgejo/config:/etc/gitea # Configuration files
|
|
- ${APPDATA_PATH}/forgejo/data:/var/lib/gitea # Application data
|
|
- /etc/timezone:/etc/timezone:ro # Timezone configuration
|
|
- /etc/localtime:/etc/localtime:ro # Local time configuration
|
|
|
|
# Network port configuration
|
|
ports:
|
|
- ${SERVER_PORT}:3000 # Maps host port to Forgejo web interface
|
|
|
|
# Network configuration
|
|
networks:
|
|
- frontend # Connects to frontend network
|
|
|
|
# External network definition
|
|
networks:
|
|
frontend:
|
|
external: true # Uses pre-existing frontend network
|