Synology/Docker(in Synology)
self hosted Gitea via synology with sshkey
kage2k
2025. 4. 5. 16:01
728x90
반응형
모처럼 글을 작성하였습니다. 대부분의 자세한 내용은 아래의 블로그에서 확인 해주세요.
https://stackinfo.kage2kapp.org/self-hosted-gitea-via-synology/
Self hosted Gitea 구축하기 (시놀로지)
이번 시간에는 Self hosted Service Gitea에 대해서 설명하고자 합니다. 가볍고 Go 언어로 작성되어있기때문에 경략화와 빠른 속도를 자랑합니다. 도커를 사용하는 시스템이라면 자체 도메인연결로 호
stackinfo.kage2kapp.org
version: "3.8"
services:
db:
image: postgres:14
container_name: gitea-db
restart: unless-stopped
hostname: gitea-db
environment:
POSTGRES_USER: gitea
POSTGRES_PASSWORD: strongpassword
POSTGRES_DB: giteadb
volumes:
- /volume1/docker/gitea/postgres:/var/lib/postgresql/data
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
read_only: true
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gitea"]
interval: 10s
timeout: 5s
retries: 5
gitea:
image: gitea/gitea:latest
container_name: gitea
hostname: gitea
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
- USER_UID=1026
- USER_GID=100
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=giteadb
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=strongpassword
- ROOT_URL=https://gitea.사용자도메인
volumes:
- /volume1/docker/gitea/web:/data
security_opt:
- no-new-privileges:true
ports:
- "3053:3000" # Web UI
- "22222:22" # SSH 접속 시놀로지 사용자라면 ssh 부분포트적용
user: "1026:100"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/ || exit 1"]
interval: 15s
timeout: 5s
retries: 5
300x250
반응형