forked from bb-hackathon/tcp-chat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
83 lines (76 loc) · 1.89 KB
/
docker-compose.yml
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
82
83
services:
postgresql:
image: library/postgres:16
hostname: ${POSTGRES_HOST}
restart: unless-stopped
env_file:
- .envrc
volumes:
- postgresql-data:/var/lib/postgresql/data
ports:
- "${PGPORT}:${PGPORT}"
sqlrunner:
build:
context: .
dockerfile: sqlrunner/Dockerfile
env_file:
- .envrc
environment:
DATABASE_URL: ${DOCKER_DATABASE_URL}
depends_on:
- postgresql
redis:
image: library/redis:latest
hostname: ${REDIS_HOST}
restart: unless-stopped
env_file:
- .envrc
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
server:
build:
context: .
dockerfile: server/Dockerfile
restart: unless-stopped
env_file:
- .envrc
environment:
DATABASE_URL: ${DOCKER_DATABASE_URL}
KV_URL: ${DOCKER_KV_URL}
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
depends_on:
- postgresql
- sqlrunner
- redis
pgadmin:
image: elestio/pgadmin:latest
restart: unless-stopped
env_file:
- .envrc
ports:
- "${PGADMIN_PORT}:80"
volumes:
- pgadmin-data:/var/lib/pgadmin
depends_on:
- postgresql
# llm:
# image: ollama/ollama:latest
# hostname: ${LLM_HOST}
# restart: unless-stopped
# tty: true
# ports:
# - "${LLM_PORT}:${LLM_PORT}"
# volumes:
# - llm:/root/.ollama
# llm-setup:
# build:
# context: .
# dockerfile: llm/Dockerfile
# restart: unless-stopped
# env_file:
# - .envrc
volumes:
postgresql-data:
pgadmin-data:
# llm: