Deploy a Gitea Portainer Docker Stack

Gitea is a lightweight DevOps platform. It brings teams and developers high-efficiency but easy operations from planning to production.

Functioning Portainer Docker Stack Example:

version: "3.8"

networks:
  gitea:
    external: false

services:
  server:
    image: gitea/gitea:latest
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
    restart: always
    networks:
      - gitea
    volumes:
      - /var/lib/docker_data/gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports: # exposed-port:internal-port
      - "3000:3000"
      - "222:22"