Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (69 loc) · 1.82 KB
/
Copy pathdocker-compose.yml
File metadata and controls
70 lines (69 loc) · 1.82 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
# SPDX-FileCopyrightText: 2025 LitterBox-Web contributors
#
# SPDX-License-Identifier: EUPL-1.2
---
services:
code-readability:
build:
context: ./connectors/code_readability/
dockerfile: ./Containerfile
networks:
- litterbox-web
# only required when debugging from the host
# ports:
# - 127.0.0.1:8000:8000
volumes:
- ./data/pytorch_model.bin:/pytorch_model.bin:ro
screenshot:
build:
context: ./connectors/screenshot/
dockerfile: ./Containerfile
networks:
- litterbox-web
# only required when debugging from the host
# ports:
# - 127.0.0.1:3001:3001
mariadb:
image: docker.io/library/mariadb:11.8
networks:
- litterbox-web
environment:
MARIADB_DATABASE: litterbox
MARIADB_USER: litterbox
MARIADB_PASSWORD: litterbox
MARIADB_ROOT_PASSWORD: root
volumes:
- db-data:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 5s
timeout: 5s
retries: 20
litterbox-web:
build:
context: .
dockerfile: ./litterbox-web/Containerfile
networks:
- litterbox-web
ports:
- 127.0.0.1:8080:8080
depends_on:
mariadb:
condition: service_healthy
environment:
SPRING_PROFILES_ACTIVE: code-readability,public-web
LITTERBOX_CAPABILITIES_ASSESSMENTS_ENABLED: "true"
LITTERBOXWEB_SCREENSHOT_URL: http://screenshot:3001/
LITTERBOXWEB_CODEREADABILITY_URL: http://code-readability:8000/
LITTERBOX_DB_URL: jdbc:mariadb://mariadb:3306/litterbox
LITTERBOX_DB_USER: litterbox
LITTERBOX_DB_PASSWORD: litterbox
LITTERBOX_SOURCE_STORAGE_ROOT: /app/storage
volumes:
- storage:/app/storage
networks:
litterbox-web:
volumes:
db-data:
storage:
...