doing some work with gogs
This commit is contained in:
parent
1b3dafa624
commit
fdedd4bf00
2 changed files with 41 additions and 0 deletions
33
gogs/gogs-server-docker-compose.yaml
Normal file
33
gogs/gogs-server-docker-compose.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
image: 'gogs/gogs:0.12.3'
|
||||||
|
restart: always
|
||||||
|
hostname: gogs
|
||||||
|
ports:
|
||||||
|
- '42070:3000'
|
||||||
|
- '42071:22'
|
||||||
|
volumes:
|
||||||
|
- '/home/pablo/gogs/data:/data'
|
||||||
|
links:
|
||||||
|
- postgres
|
||||||
|
networks:
|
||||||
|
- gogs
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres:13.4
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- "POSTGRES_USER=${POSTGRES_USER}"
|
||||||
|
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
|
||||||
|
- "POSTGRES_DB=gogs"
|
||||||
|
volumes:
|
||||||
|
- "/home/pablo/gogs/postgres_data:/var/lib/postgresql/data"
|
||||||
|
networks:
|
||||||
|
- gogs
|
||||||
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
gogs:
|
||||||
|
driver: bridge
|
||||||
8
gogs/gogs_details.md
Normal file
8
gogs/gogs_details.md
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
I need to remove the gogs volume data and start from scratch
|
||||||
|
because I modified the app.ini config file when I was not
|
||||||
|
supposed to do that. Instead, I should create another config
|
||||||
|
file and it will override that.
|
||||||
|
|
||||||
|
See: https://gogs.io/docs/installation/configuration_and_run
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue