40 lines
884 B
YAML
40 lines
884 B
YAML
|
services:
|
||
|
server:
|
||
|
image: codeberg.org/forgejo/forgejo:7
|
||
|
container_name: forgejo
|
||
|
environment:
|
||
|
- 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=blitzy
|
||
|
restart: always
|
||
|
networks:
|
||
|
- forgejo
|
||
|
volumes:
|
||
|
- ./forgejo:/data
|
||
|
- /etc/timezone:/etc/timezone:ro
|
||
|
- /etc/localtime:/etc/localtime:ro
|
||
|
ports:
|
||
|
- "3000:3000"
|
||
|
- "222:22"
|
||
|
depends_on:
|
||
|
- db
|
||
|
|
||
|
db:
|
||
|
image: postgres:14
|
||
|
restart: always
|
||
|
environment:
|
||
|
- POSTGRES_USER=forgejo
|
||
|
- POSTGRES_PASSWORD=blitzy
|
||
|
- POSTGRES_DB=forgejo
|
||
|
networks:
|
||
|
- forgejo
|
||
|
volumes:
|
||
|
- ./postgres:/var/lib/postgresql/data
|
||
|
|
||
|
networks:
|
||
|
forgejo:
|
||
|
external: false
|