changes
This commit is contained in:
parent
e083ae0589
commit
e44e9c3d9c
7
deploy-traefik.sh
Normal file
7
deploy-traefik.sh
Normal file
@ -0,0 +1,7 @@
|
||||
set -e
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
sudo docker network create proxynet
|
||||
sudo git clone https://git.rozenlab.com/leo/repo-server.git
|
||||
|
||||
echo "Traefik OK"
|
@ -14,7 +14,7 @@ services:
|
||||
|
||||
- SSH_DOMAIN=gitea.${DOMAIN}
|
||||
- HTTP_PORT=3000
|
||||
- ROOT_URL=https://gitea.${DOMAIN}
|
||||
- ROOT_URL=https://git.${DOMAIN}
|
||||
- SSH_PORT=222
|
||||
- SSH_LISTEN_PORT=22
|
||||
- GITEA__cache__ENABLED=true
|
||||
@ -35,7 +35,7 @@ services:
|
||||
condition: service_started
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.gitea.rule=Host(`gitea.${DOMAIN}`)"
|
||||
- "traefik.http.routers.gitea.rule=Host(`git.${DOMAIN}`)"
|
||||
- "traefik.http.routers.gitea.entrypoints=https"
|
||||
- "traefik.http.routers.gitea.service=gitea-service"
|
||||
- "traefik.http.services.gitea-service.loadbalancer.server.port=3000"
|
||||
|
65
readme.md
65
readme.md
@ -1,65 +0,0 @@
|
||||
Init:
|
||||
|
||||
sudo git clone git@rozenlab.com:leo/repo-server.git && sudo docker network create proxynet && cd repo-server && sudo chmod +x start.sh
|
||||
|
||||
sudo git pull git@rozenlab.com:leo/repo-server.git
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
All run:
|
||||
|
||||
sudo ./start.sh
|
||||
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
Traefik run:
|
||||
|
||||
Development:
|
||||
sudo docker compose --env-file .env.dev -f traefik.yml up -d
|
||||
|
||||
Production:
|
||||
sudo docker compose --env-file .env.prod -f traefik.yml up -d
|
||||
|
||||
|
||||
---------------------------------------------------------------------
|
||||
Gitea run:
|
||||
|
||||
Development:
|
||||
sudo docker compose --env-file .env.dev -f gitea.yml up -d
|
||||
|
||||
Production:
|
||||
sudo docker compose --env-file .env.prod -f gitea.yml up -d
|
||||
|
||||
|
||||
---------------------------------------------------------------------
|
||||
Postgres run:
|
||||
|
||||
Development:
|
||||
sudo docker compose -f postgres.yml up -d
|
||||
|
||||
Production:
|
||||
sudo docker compose -f postgres.yml up -d
|
||||
|
||||
|
||||
---------------------------------------------------------------------
|
||||
Pgadmin run:
|
||||
|
||||
Development:
|
||||
sudo docker compose --env-file .env.dev -f pgadmin.yml up -d
|
||||
|
||||
Production:
|
||||
sudo docker compose --env-file .env.prod -f pgadmin.yml up -d
|
||||
|
||||
|
||||
---------------------------------------------------------------------
|
||||
Nginx run:
|
||||
|
||||
Development:
|
||||
sudo docker compose --env-file .env.dev -f nginx.yml up -d
|
||||
|
||||
Production:
|
||||
sudo docker compose --env-file .env.prod -f nginx.yml up -d
|
||||
|
||||
|
||||
---------------------------------------------------------------------
|
Loading…
Reference in New Issue
Block a user