Add gitea #1
19
README.md
19
README.md
@ -1,2 +1,17 @@
|
|||||||
# hosting
|
# Laconic Hosting
|
||||||
Documentation and code related to laconic self-hosting
|
Documentation and code related to self-hosting laconic network development and build services.
|
||||||
|
## Goals
|
||||||
|
1. Bootstrap development services for Laconic including source code repository, CI/CD pipeline, package registries.
|
||||||
|
1. Achieve #1 relying only on the following prerequisites:
|
||||||
|
* General purpose computer hardware
|
||||||
|
* Popular Linux distributions
|
||||||
|
* Base software construction tools: compilers and so on
|
||||||
|
* Docker (->Podman?)
|
||||||
|
* Internet connectivity
|
||||||
|
* Public DNS
|
||||||
|
* A set of "seed" git repositories, hosted at an existing Laconic deployment, or GitHub for first-generation seed.
|
||||||
|
2. Do not require any of the following (although they may be used if desired):
|
||||||
|
* Commercial cloud hosting services
|
||||||
|
* Public package registries
|
||||||
|
* Public container repositories
|
||||||
|
* Closed source software
|
||||||
|
3
gitea/README.md
Normal file
3
gitea/README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
## Manual deployment notes
|
||||||
|
### Gitea
|
||||||
|
1. Create admin user in web UI on initial setup
|
42
gitea/docker-compose.yml
Normal file
42
gitea/docker-compose.yml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
gitea:
|
||||||
|
external: false
|
||||||
|
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
image: gitea/gitea:1.17.1
|
||||||
|
container_name: gitea
|
||||||
|
environment:
|
||||||
|
- USER_UID=1000
|
||||||
|
- USER_GID=1000
|
||||||
|
- GITEA__database__DB_TYPE=postgres
|
||||||
|
- GITEA__database__HOST=db:5432
|
||||||
|
- GITEA__database__NAME=gitea
|
||||||
|
- GITEA__database__USER=gitea
|
||||||
|
- GITEA__database__PASSWD=gitea
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- gitea
|
||||||
|
volumes:
|
||||||
|
- ./gitea:/data
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
- "222:22"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:14
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=gitea
|
||||||
|
- POSTGRES_PASSWORD=gitea
|
||||||
|
- POSTGRES_DB=gitea
|
||||||
|
networks:
|
||||||
|
- gitea
|
||||||
|
volumes:
|
||||||
|
- ./postgres:/var/lib/postgresql/data
|
3
gitea/run-this-first.sh
Executable file
3
gitea/run-this-first.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
mkdir -p ./gitea
|
||||||
|
mkdir -p ./postgres
|
Loading…
Reference in New Issue
Block a user