forked from izus-fokus/LicenseChecker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (81 loc) · 2.11 KB
/
docker-compose.yml
File metadata and controls
81 lines (81 loc) · 2.11 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
version: '3'
services:
frontend:
container_name: frontend
image: "cr.tik.uni-stuttgart.de/izus-darus/license-checker/frontend:${TAGFRONTED}"
ports:
- '5173:80'
networks:
- resus
restart: unless-stopped
backend:
container_name: backend
image: "cr.tik.uni-stuttgart.de/izus-darus/license-checker/backend:${TAGBACKEND}"
ports:
- '8000:8000'
networks:
- resus
restart: unless-stopped
fossology:
container_name: fossology
image: docker.io/fossology/fossology:4.6.0
platform: linux/amd64
ports:
- '7100:80'
networks:
- resus
restart: unless-stopped
environment:
- FOSSOLOGY_DB_HOST=db
- FOSSOLOGY_DB_NAME=fossology
- FOSSOLOGY_DB_USER=fossy
- FOSSOLOGY_DB_PASSWORD=fossy
depends_on:
- db
healthcheck:
test: ["CMD-SHELL", "curl http://localhost/repo/api/v2/info"]
interval: 10s
start_period: 2s
timeout: 3s
volumes:
- repository:/srv/fossology/repository/
db:
image: docker.io/postgres:16-alpine3.22
container_name: postgres
restart: unless-stopped
environment:
- POSTGRES_DB=fossology
- POSTGRES_USER=fossy
- POSTGRES_PASSWORD=fossy
- POSTGRES_INITDB_ARGS='-E SQL_ASCII'
ports:
- "5432:5432" # Host‑Port : Container‑Port (optional)
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready --dbname $$POSTGRES_DB --username $$POSTGRES_USER"]
interval: 10s
timeout: 5s
retries: 5
license-engine:
container_name: engine
image: "cr.tik.uni-stuttgart.de/izus-darus/license-checker/engine:${TAGENGINE}"
network_mode: "host"
environment:
- FOSSOLOGY_ENDPOINT_BASE_PATH=http://localhost:7100
restart: unless-stopped
depends_on:
fossology:
condition: service_healthy
volumes:
- licenseenginedata:/licenseengine/tmp:rw
networks:
resus:
driver: bridge
volumes:
licenseenginedata:
pg_data:
name: pg_data # benannter Docker‑Volume
driver: local
repository: