-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
82 lines (77 loc) · 1.85 KB
/
docker-compose.yaml
File metadata and controls
82 lines (77 loc) · 1.85 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
75
76
77
78
79
80
81
82
version: '3.8'
services:
kg-db:
image: postgres:15
restart: always
ports:
- '5432:5432'
environment:
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- kg-network
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
kg-server:
build:
context: .
dockerfile: Dockerfile.server
container_name: kg-server
restart: always
ports:
- '9081:9081'
networks:
- kg-network
environment:
- DATABASE_DRIVER_NAME=postgres
- DATABASE_DATASOURCE=host=kg-db port=5432 user=postgres password=mysecretpassword dbname=postgres sslmode=disable
- YOUTUBE_API_KEY=${YOUTUBE_API_KEY}
- SITE_URL=${SITE_URL}
- CHAT_GPT_API_KEY=${CHAT_GPT_API_KEY}
- CHAT_GPT_ORGANIZATION_ID=${CHAT_GPT_ORGANIZATION_ID}
- PINECONE_API_KEY=${PINECONE_API_KEY}
- STRIPE_API_KEY=${STRIPE_API_KEY}
- STRIPE_CUSTOMER_WEBHOOK_SECRET=${STRIPE_CUSTOMER_WEBHOOK_SECRET}
depends_on:
- kg-db
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9081/healthcheck"]
interval: 300s
timeout: 15s
start_period: 300s
retries: 3
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
kg-webapp:
build:
context: .
dockerfile: Dockerfile.webapp
container_name: kg-webapp
restart: always
ports:
- '9091:9091'
environment:
- KG_SERVER_URL_DOCKER=http://kg-server:9081
stdin_open: true
tty: true
networks:
- kg-network
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
networks:
kg-network:
driver: bridge
volumes:
postgres-data: