Installation - gitea(docker)

Installation - getea #

참고

apt install docker docker.io -y

sudo curl -L "[https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)](https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname%20-s)-$(uname%20-m))" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose
mkdir dockers
cd dockers
vi docker-compose.yml

docker-compose.yml

version: "2"

networks:
 gitea:
 external: false

services:
 server:
 image: gitea/gitea:latest
 environment:
  - USER\_UID=1000
  - USER\_GID=1000

 restart: always
 networks:
  - gitea

 volumes:
  - ./gitea:/data
  - /etc/timezone:/etc/timezone:ro
  - /etc/localtime:/etc/localtime:ro
 ports:
  - "3000:3000"
  - "2222:22"
docker-compose up
docker-compose start