-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
48 lines (45 loc) · 1.03 KB
/
compose.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
44
45
46
47
services:
loadbalancer:
image: nginx:alpine
container_name: loadbalancer
restart: always
ports:
- '80:80'
environment:
- NGINX_HOST=localhost
- NGINX_PORT=80
depends_on:
- gitea
volumes:
- ./mnt/nginx.conf:/etc/nginx/nginx.conf
links:
- gitea:gitea
gitea:
container_name: gitea
image: gitea/gitea:1.22.0-rootless
restart: always
environment:
- GITEA____RUN_MODE=prod
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=gitea
- GITEA__database__PASSWD=gitea
- GITEA__database__USER=gitea
- GITEA__server__ROOT_URL=http://studio.localhost/repos
- GITEA__security__INSTALL_LOCK=true
depends_on:
- db
ports:
- '3000:3000'
build:
context: ./gitea/
db:
container_name: db
image: postgres:alpine
restart: always
environment:
POSTGRES_PASSWORD: gitea
POSTGRES_USER: gitea
POSTGRES_DB: gitea
ports:
- '5432:5432'