-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
60 lines (53 loc) · 1.31 KB
/
docker-compose.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
version: "3.9"
services:
nginx:
image: openkilt/openrepo:latest
command: nginx
restart: unless-stopped
ports:
- "7376:8080"
depends_on:
- "django"
volumes:
- ./openrepo-data:/var/lib/openrepo
django:
image: openkilt/openrepo:latest
expose:
- "8000"
command: run_openrepoweb
restart: unless-stopped
volumes:
- ./openrepo-data:/var/lib/openrepo
environment:
- OPENREPO_DB_TYPE=postgresql
- OPENREPO_PG_DATABASE=openrepo
- OPENREPO_PG_USERNAME=postgres
- OPENREPO_PG_PASSWORD=postgres
- OPENREPO_PG_HOSTNAME=db
depends_on:
- "db"
worker:
image: openkilt/openrepo:latest
command: ./django/manage.py runworker
volumes:
- ./openrepo-data:/var/lib/openrepo
restart: unless-stopped
environment:
- OPENREPO_DB_TYPE=postgresql
- OPENREPO_PG_DATABASE=openrepo
- OPENREPO_PG_USERNAME=postgres
- OPENREPO_PG_PASSWORD=postgres
- OPENREPO_PG_HOSTNAME=db
depends_on:
- "django"
db:
image: postgres:16.3-alpine3.20
expose:
- "5432"
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=openrepo
volumes:
- ./openrepo-data/postgres:/var/lib/postgresql/data