Installing Gitea (my own GitHub)

To install Gitea on a Synology under Docker you can pretty much follow the instructions found here

I used the custome setup with some minor changes to the USER-UID & USER-GID for the account I want to run under on the Synology. 

docker-compose.yml:

version: "2"
networks:
  gitea:
    external: false
services:
  server:
    image: gitea/gitea:latest
    environment:
      - USER_UID={enter User ID here}
      - USER_GID={enter Group ID here}
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
    ports:
      - "3000:3000"
      - "222:22"

The above will use a SQLite database which should be fine. 

When running “sudo docker-compose up -d” an error was generated for failing to mount “gitea” due to permissions. Manually creating the folder and re-running the command fixed the issue.

Checking Docker on the Synology finds that the container is running and connecting with a browser to http://{server}:3000 with bring up the Gitea page – woohoo!

 

This entry was posted in Code, Docker and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *