-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (68 loc) · 1.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (68 loc) · 1.61 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
version: '3.8'
services:
postgresql:
image: postgres
container_name: postgres_db
restart: always
environment:
- POSTGRES_DB=bank_reviews
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_ROOT_PASSWORD=root
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 30s
retries: 3
networks:
- default
app:
build: .
environment:
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_NAME=bank_reviews
- DB_PORT=5432
- DB_HOST=postgresql
- FLASK_APP=superset
depends_on:
postgresql:
condition: service_healthy
networks:
- default
# ollama:
# condition: service_healthy
volumes:
- .:/app
ports:
- "8088:8088" # Assuming your app runs on port 80 internally, map it to port 8000 externally
entrypoint: ["bash", "/app/entrypoint.sh"]
# ollama:
# build:
# context: .
# dockerfile: Dockerfile.ollama
# container_name: ollama
# pull_policy: always
# tty: true
# ports:
# - "11434:11434"
# restart: unless-stopped
# volumes:
# - ollama:/root/.ollama
# entrypoint: ["ollama", "serve"]
# healthcheck:
# test: ["CMD-SHELL", "curl -f http://localhost:11434/ || exit 1"]
# interval: 30s
# timeout: 30s
# retries: 3
networks:
default:
driver: bridge
volumes:
postgres_data:
ollama: {}