-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.28 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
services:
llamacpp:
image: joshxt/local-llm:cpu-f99ed54d76d3752a2af75979dd06f3ef52247a6d
restart: on-failure:5
volumes:
- ./models:/app/models
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
ports:
- ${MONGODB_PORT}:${MONGODB_PORT}
volumes: # Persist the data
- ./data:/data/db
backend:
image: ${DOCKER_REGISTRY}/zenbox-backend
restart: on-failure:5
depends_on:
- mongo
- llamacpp
env_file:
- ./.env
volumes:
- ./logs/backend:/app/logs
api:
image: ${DOCKER_REGISTRY}/zenbox-api
restart: on-failure:5
depends_on:
- mongo
env_file:
- ./.env
volumes:
- ./logs/api:/app/logs
nextjs-app:
image: ${DOCKER_REGISTRY}/zenbox-nextjs-app
restart: on-failure:5
depends_on:
- mongo
env_file:
- ./.env
volumes:
- ./logs:/app/logs
nginx:
image: nginx:alpine
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ${SSL_CERT_PATH}:/etc/nginx/ssl/my_ssl_cert.crt
- ${SSL_KEY_PATH}:/etc/nginx/ssl/my_ssl_key.key
depends_on:
- nextjs-app