2024-01-27 22:15:10 +02:00
|
|
|
# cSpell:ignore pgdata pgsql localtime
|
2022-07-31 17:07:18 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
gitea-database:
|
2024-11-17 08:28:52 +02:00
|
|
|
image: postgres:17.1-alpine
|
2022-07-31 17:07:18 +02:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: gitea
|
|
|
|
POSTGRES_PASSWORD: 123456
|
|
|
|
POSTGRES_DB: gitea
|
|
|
|
PGDATA: /var/lib/postgresql/data/pgdata
|
|
|
|
volumes:
|
|
|
|
- pgsql:/var/lib/postgresql/data/pgdata
|
|
|
|
|
|
|
|
gitea:
|
2024-06-03 07:42:16 +02:00
|
|
|
image: gitea/gitea:1.22
|
2022-07-31 17:07:18 +02:00
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
volumes:
|
|
|
|
- gitea:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
depends_on:
|
|
|
|
- gitea-database
|
|
|
|
environment:
|
|
|
|
USER_UID: 1000
|
|
|
|
USER_GID: 1000
|
|
|
|
# GITEA__server__DOMAIN: gitea.local.self
|
2022-10-09 22:13:04 +02:00
|
|
|
GITEA__server__ROOT_URL: https://3000-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}
|
2022-07-31 17:07:18 +02:00
|
|
|
GITEA__database__DB_TYPE: postgres
|
|
|
|
GITEA__database__HOST: gitea-database:5432
|
|
|
|
GITEA__database__NAME: gitea
|
|
|
|
GITEA__database__USER: gitea
|
|
|
|
GITEA__database__PASSWD: 123456
|
2023-10-24 14:42:05 +02:00
|
|
|
GITEA__webhook__ALLOWED_HOST_LIST: '*'
|
|
|
|
GITEA__security__INSTALL_LOCK: 'true'
|
|
|
|
GITEA__security__INTERNAL_TOKEN: '123456'
|
2022-07-31 17:07:18 +02:00
|
|
|
extra_hosts:
|
2023-10-24 14:42:05 +02:00
|
|
|
- 'host.docker.internal:host-gateway'
|
2022-07-31 17:07:18 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
gitea:
|
|
|
|
pgsql:
|