forked from woodpecker-ci/woodpecker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.gitpod.yaml
43 lines (40 loc) · 1.14 KB
/
docker-compose.gitpod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# cSpell:ignore pgdata pgsql localtime
version: '3'
services:
gitea-database:
image: postgres:16.2-alpine
environment:
POSTGRES_USER: gitea
POSTGRES_PASSWORD: 123456
POSTGRES_DB: gitea
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- pgsql:/var/lib/postgresql/data/pgdata
gitea:
image: gitea/gitea:1.21
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
GITEA__server__ROOT_URL: https://3000-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}
GITEA__database__DB_TYPE: postgres
GITEA__database__HOST: gitea-database:5432
GITEA__database__NAME: gitea
GITEA__database__USER: gitea
GITEA__database__PASSWD: 123456
GITEA__webhook__ALLOWED_HOST_LIST: '*'
GITEA__security__INSTALL_LOCK: 'true'
GITEA__security__INTERNAL_TOKEN: '123456'
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
gitea:
pgsql: