2024-05-09 05:45:00 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
forgejo:
|
|
|
|
external: false
|
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
image: codeberg.org/forgejo/forgejo:7
|
|
|
|
container_name: forgejo
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
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:
|
2024-05-14 09:03:51 +00:00
|
|
|
image: postgres:15.6
|
2024-05-09 05:45:00 +00:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=forgejo
|
|
|
|
- POSTGRES_PASSWORD=forgejo
|
|
|
|
- POSTGRES_DB=forgejo
|
|
|
|
networks:
|
|
|
|
- forgejo
|
|
|
|
volumes:
|
|
|
|
- ./postgres:/var/lib/postgresql/data
|