-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (74 loc) · 1.9 KB
/
Copy pathdocker-compose.yml
File metadata and controls
79 lines (74 loc) · 1.9 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
---
services:
scratchlog:
build:
context: .
dockerfile: Containerfile
restart: on-failure
environment:
spring.profiles.active: embeddings,whisker,prod
spring.datasource.url: "jdbc:mariadb://database:3306/scratchlog"
spring.datasource.user: scratchlog
spring.datasource.password: scratchlog
app.gui: http://localhost:8601
app.gui.base: http://localhost:8601
code-embeddings.model: llm
code-embeddings.embedding-connector-url: http://embedding-connector:8080
whisker.base-url: http://whisker:8091
whisker.max-parallel: 1
networks:
- scratchlog
ports:
- "127.0.0.1:8090:8090/tcp"
# replace with the one below to make it available on the whole network
# - "0.0.0.0:8090:8090/tcp"
depends_on:
database:
condition: service_started
database:
image: docker.io/library/mariadb:12
restart: on-failure
environment:
MYSQL_DATABASE: scratchlog
MYSQL_USER: scratchlog
MYSQL_PASSWORD: scratchlog
MYSQL_ROOT_PASSWORD: scratchlog
volumes:
# seed database with some initial data
# - scratchlog_demo_db.sql.zst:/docker-entrypoint-initdb.d/init.sql.zst
- scratchlog-db:/var/lib/mysql
networks:
- scratchlog
ports:
- "127.0.0.1:3306:3306/tcp"
scratch-gui:
build:
context: ./scratch-gui
dockerfile: Dockerfile
restart: on-failure
ports:
- "127.0.0.1:8601:80/tcp"
networks:
- scratchlog
embedding-connector:
build:
context: ./embedding-connector
dockerfile: Containerfile
restart: on-failure
env_file:
- .env
networks:
- scratchlog
whisker:
build:
context: ./whisker-connector
dockerfile: build-for-apptainer.Dockerfile
target: api
restart: on-failure
networks:
- scratchlog
volumes:
scratchlog-db:
networks:
scratchlog:
...