Files
2026-09-18 20:29:17 -06:00

26 lines
619 B
YAML

services:
server:
image: docker.gitea.com/gitea:latest
container_name: gitea
env_file:
.env
environment:
- USER_UID=1000
- USER_GID=1000
# Where the config file will be located IN THE CONTAINER, not the local machine, does not need to be changed
- GITEA_APP_INI="/data/gitea/conf/app.ini"
volumes:
- ${GITEA_DATA_DIR}:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- ${GITEA_WEB_PORT}:3000
- ${GITEA_SSH_PORT}:22
restart: always
networks:
- gitea
networks:
gitea:
external: false