Working basic setup.
This commit is contained in:
commit
650c6e558a
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
data
|
||||||
|
pgdata
|
||||||
|
|
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM gogs/gogs
|
||||||
|
|
||||||
|
|
13
README.md
Normal file
13
README.md
Normal 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
22
compose.yml
Normal 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user