Working basic setup.

This commit is contained in:
retoor 2025-01-21 11:42:04 +01:00
commit 650c6e558a
4 changed files with 41 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
data
pgdata

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM gogs/gogs

13
README.md Normal file
View File

@ -0,0 +1,13 @@
# Docker compose setup for gogs
# Instructions
Just run:
```
docker compose up
```
On configuration page (http://127.0.0.1:7331/) configure:
- choose built-in ssh service option and configure port to be 2222
That's all ! You have now a gogs server running dockerized!

22
compose.yml Normal file
View File

@ -0,0 +1,22 @@
services:
cogs:
build: .
ports:
- "0.0.0.0:2222:2222"
- "0.0.0.0:7331:3000"
volumes:
- ./data:/data gogs/gogs
gogs-db:
image: postgres
restart: always
expose:
- 5432
environment:
- POSTGRES_PASSWORD=gogs
- POSTGRES_USER=gogs
- POSTGRES_DB=gogs
volumes:
- ./pgdata:/var/lib/postgresql/data