Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fboulnois/gitea-docker
Runs a minimal Gitea Docker deployment built on Debian 12
https://github.com/fboulnois/gitea-docker
debian docker docker-compose git gitea
Last synced: 2 days ago
JSON representation
Runs a minimal Gitea Docker deployment built on Debian 12
- Host: GitHub
- URL: https://github.com/fboulnois/gitea-docker
- Owner: fboulnois
- License: mit
- Created: 2022-08-03T00:49:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-08T01:14:57.000Z (9 months ago)
- Last Synced: 2024-10-11T18:11:41.402Z (26 days ago)
- Topics: debian, docker, docker-compose, git, gitea
- Language: Dockerfile
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Gitea on Docker
Runs a minimal [Gitea](https://gitea.io) Docker deployment built on Debian 12.
## Features
* Built on Debian 12 for portability
* Uses a non-root user for security
* Only runs `git` and `gitea` in the container
* Simple `Dockerfile` and `docker-compose.yml` files
* One step deployment that creates a valid server on localhost## Configuration
You should replace the [Gitea config file](app.ini) with your own.
See the official Gitea [config-cheat-sheet](https://docs.gitea.io/en-us/config-cheat-sheet/)
for more information on how to configure these settings.## Build and Deploy
Building the container and deploying the service is simple.
### Build
```sh
docker build --target env-build . --tag gitea-docker-build
docker build --target env-deploy . --tag gitea-docker
docker swarm init || true # this only needs to be run once
```### Deploy
```sh
docker stack deploy -c docker-compose.yml gitea-docker
```There is also a [`Makefile`](Makefile) with shortcuts to these commands to build
and deploy the server more easily.