Initial commit
This commit is contained in:
commit
166a02be65
2 changed files with 55 additions and 0 deletions
51
docker-compose.yml
Normal file
51
docker-compose.yml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
name: forgejo
|
||||
|
||||
volumes:
|
||||
next_certs:
|
||||
external: true
|
||||
|
||||
networks:
|
||||
forgejo:
|
||||
external: false
|
||||
next_proxy-tier:
|
||||
external: true
|
||||
|
||||
services:
|
||||
# Forgejo
|
||||
server:
|
||||
image: codeberg.org/forgejo/forgejo:11
|
||||
container_name: forgejo
|
||||
environment:
|
||||
- LETSENCRYPT_HOST=git.palta.cyou
|
||||
- VIRTUAL_HOST=git.palta.cyou
|
||||
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- FORGEJO__database__DB_TYPE=postgres
|
||||
- FORGEJO__database__HOST=db:5432
|
||||
- FORGEJO__database__NAME=forgejo
|
||||
- FORGEJO__database__USER=forgejo
|
||||
- FORGEJO__database__PASSWD=forgejo
|
||||
- FORGEJO__server__HTTP_PORT=80
|
||||
restart: always
|
||||
networks:
|
||||
- forgejo
|
||||
- next_proxy-tier
|
||||
volumes:
|
||||
- ./forgejo:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
expose:
|
||||
- '3000'
|
||||
|
||||
db:
|
||||
image: postgres:14
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=forgejo
|
||||
- POSTGRES_PASSWORD=forgejo
|
||||
- POSTGRES_DB=forgejo
|
||||
networks:
|
||||
- forgejo
|
||||
volumes:
|
||||
- ./postgres:/var/lib/postgresql/data
|
||||
4
docker-update.sh
Executable file
4
docker-update.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
docker compose up --force-recreate --build -d --pull always
|
||||
docker image prune -f
|
||||
Loading…
Add table
Add a link
Reference in a new issue