-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
44 lines (43 loc) · 1.05 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
version: "3.9"
services:
database:
image: "postgres"
ports:
- "15432:5432"
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
POSTGRES_DB: gitarena
secrets:
- db_password
workhorse:
build: Dockerfile.workhorse
depends_on:
- database
volumes:
- repo_data:repositories
environment:
DATABASE_URL: "postgresql://postgres@localhost:15432/gitarena?sslmode=disable"
DATABASE_PASSWORD_FILE: /run/secrets/db_password
secrets:
- db_password
gitarena:
build: Dockerfile
depends_on:
- database
- workhorse
ports:
- "8080:8080"
volumes:
- repo_data:repositories
environment:
# TODO: Remove this once nginx is also added to this compose
SERVE_STATIC_FILES: true
DATABASE_URL: "postgresql://postgres@localhost:15432/gitarena?sslmode=disable"
DATABASE_PASSWORD_FILE: /run/secrets/db_password
secrets:
- db_password
volumes:
db_data:
repo_data: