-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
79 lines (74 loc) · 2.22 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
version: "3.7"
services:
backend:
image: '${DOCKER_IMAGE_BACKEND}:${TAG-latest}'
ports:
- "8000:80"
env_file:
- .env
environment:
- DOMAIN=${DOMAIN}
- SERVER_HOST=https://${DOMAIN}
- BACKEND_CORS_ORIGINS=${BACKEND_CORS_ORIGINS}
- SECRET_KEY=${SECRET_KEY}
- FIRST_SUPERUSER=${FIRST_SUPERUSER}
- FIRST_SUPERUSER_PASSWORD=${FIRST_SUPERUSER_PASSWORD}
- ROLLBAR_ENABLED=${ROLLBAR_ENABLED}
- ROLLBAR_ENV=${ROLLBAR_ENV}
- ROLLBAR_KEY=${ROLLBAR_KEY}
- SMTP_TLS=${SMTP_TLS}
- SMTP_PORT=${SMTP_PORT}
- SMTP_HOST=${SMTP_HOST}
- SMTP_USER=${SMTP_USER}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- SQLALCHEMY_DATABASE_URI=${SQLALCHEMY_DATABASE_URI}
- ZILLION_CONFIG=${ZILLION_CONFIG}
- ZILLION_OPENAI_API_KEY=${ZILLION_OPENAI_API_KEY}
- ZILLION_OPENAI_MODEL=${ZILLION_OPENAI_MODEL}
- ZILLION_QDRANT_HOST=${ZILLION_QDRANT_HOST}
- PRE_PRESTART_CMD=${PRE_PRESTART_CMD}
- INITIAL_WAREHOUSES_FILE=${INITIAL_WAREHOUSES_FILE}
- SQLALCHEMY_SILENCE_UBER_WARNING=1
- PLUGIN_TOKEN=${PLUGIN_TOKEN}
- PLUGIN_WAREHOUSE_ID=${PLUGIN_WAREHOUSE_ID}
- PLUGIN_EMAIL=${PLUGIN_EMAIL}
- PLUGIN_LEGAL_INFO=${PLUGIN_LEGAL_INFO}
build:
context: ./backend
dockerfile: backend.dockerfile
args:
INSTALL_DEV: ${INSTALL_DEV-false}
qdrant:
image: qdrant/qdrant
ports:
- 6333:6333
- 6334:6334
volumes:
- ./volumes/qdrant:/qdrant/storage
frontend:
image: '${DOCKER_IMAGE_FRONTEND}:${TAG-latest}'
ports:
- "80:80"
environment:
- VUE_APP_DOMAIN=${DOMAIN}
- VUE_APP_NAME=${VUE_APP_NAME-Zillion}
build:
context: ./frontend
args:
FRONTEND_ENV: ${FRONTEND_ENV-production}
VUE_APP_DOMAIN: ${DOMAIN}
VUE_APP_NAME: ${VUE_APP_NAME-Zillion}
db:
image: postgres:15
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
env_file:
- .env
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_SERVER=${POSTGRES_SERVER}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
app-db-data: