-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (91 loc) · 2.16 KB
/
docker-compose.yml
File metadata and controls
98 lines (91 loc) · 2.16 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
services:
dynamodb-local:
image: amazon/dynamodb-local:latest
container_name: deepthought-dynamodb
ports:
- "8000:8000"
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath /data"
user: root
volumes:
- dynamodb-data:/data
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:8000/shell/ || exit 1"]
interval: 10s
timeout: 5s
retries: 3
networks:
- deepthought
dynamodb-admin:
image: aaronshaf/dynamodb-admin
container_name: deepthought-dynamodb-admin
ports:
- "8001:8001"
env_file:
- ./backend/.env
environment:
DYNAMO_ENDPOINT: ${DC_DYNAMODB_ENDPOINT}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_REGION: ${AWS_REGION}
depends_on:
dynamodb-local:
condition: service_healthy
networks:
- deepthought
setup-dynamo:
build:
context: ./backend
container_name: deepthought-setup-dynamo
command: ["python", "scripts/setup_dynamodb.py"]
env_file:
- ./backend/.env
environment:
DYNAMODB_ENDPOINT_URL: ${DC_DYNAMODB_ENDPOINT}
depends_on:
dynamodb-local:
condition: service_healthy
networks:
- deepthought
setup-pinecone:
build:
context: ./backend
container_name: deepthought-setup-pinecone
command: ["python", "scripts/setup_pinecone.py"]
env_file:
- ./backend/.env
networks:
- deepthought
backend:
build:
context: ./backend
container_name: deepthought-backend
ports:
- "8080:8080"
env_file:
- ./backend/.env
environment:
DYNAMODB_ENDPOINT_URL: ${DC_DYNAMODB_ENDPOINT}
depends_on:
setup-dynamo:
condition: service_completed_successfully
networks:
- deepthought
frontend:
build:
context: ./frontend
args:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
container_name: deepthought-frontend
ports:
- "3000:3000"
env_file:
- ./frontend/.env
depends_on:
- backend
networks:
- deepthought
volumes:
dynamodb-data:
networks:
deepthought:
driver: bridge