Skip to content

Gitea

docker-compose.yml

YAML
version: "3.7"

networks:
  nginx-proxy-manager_default:
    name: nginx-proxy-manager_default
    external: true

services:
  gitea:
    image: gitea/gitea:1.20.5
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - GITEA__database__DB_TYPE=postgres
      - GITEA__database__HOST=giteadb:5432
      - GITEA__database__NAME=gitea
      - GITEA__database__USER=gitea
      - GITEA__database__PASSWD=giteaP@ass
    restart: always
    networks:
      - nginx-proxy-manager_default
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    depends_on:
      - giteadb
#    ports:
#      - "3000:3000"
      - "222:22"

  giteadb:
    image: postgres:14
    restart: always
    environment:
      - POSTGRES_USER=gitea
      - POSTGRES_PASSWORD=giteaP@ass
      - POSTGRES_DB=gitea
    networks:
      - nginx-proxy-manager_default
    volumes:
      - ./postgres:/var/lib/postgresql/data
  • Check data/gitea/conf/app.ini