-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yaml
61 lines (56 loc) · 1.24 KB
/
docker-compose.yaml
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
version: "3.8"
services:
quarkus-app:
build:
context: ./backend
dockerfile: src/main/docker/Dockerfile.jvm
image: quarkus-backend
environment:
- QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://quarkus-db:5432/quarkus
- QUARKUS_FLYWAY_SCHEMAS=quarkus
ports:
- "8080:8080" # the HTTP endpoint
depends_on:
quarkus-db:
condition: service_healthy
networks:
- quarkus
quarkus-db:
image: postgres:15.1
restart: always
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=quarkus
- POSTGRES_PASSWORD=quarkus
healthcheck:
test: ["CMD-SHELL", "pg_isready -U quarkus"]
interval: 5s
timeout: 5s
retries: 6
ports:
- "5432:5432"
networks:
- quarkus
ollama:
image: ollama/ollama:0.5.13
container_name: ollama
restart: unless-stopped
pull_policy: always
tty: true
volumes:
- ollama:/root/.ollama
- ./entrypoint.sh:/entrypoint.sh
ports:
- 11434:11434
networks:
- quarkus
entrypoint: [ "/usr/bin/bash", "/entrypoint.sh" ]
env_file: "./backend/.env"
networks:
quarkus:
driver: bridge
volumes:
ollama: {}
db-data:
driver: local