Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 799 Bytes

File metadata and controls

52 lines (33 loc) · 799 Bytes

Gitea+Mysql+Caddy by using Docker

start

docker-compose up -d

setting in gitea

connect to localhost:8880

customize

change your port in docker-compose.yml

http:
    build:
     ...      
    ports:
      - "443:443" // change port here
      - "8880:80" // change port here
    ...

change your domain in Caddyfile

http://localhost {  <-- change domain here (localhost to yours)
  log / stdout "{host} {upstream}"
  errors stdout

  proxy / gitea:3000 
}

refs

https://andrewzah.com/posts/selfhosting-git-with-gitea-docker-caddy/

https://docs.gitea.io/en-us/install-with-docker/

https://onlyhavecans.works/amy/gitea-docker