-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (63 loc) · 1.21 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
version: "1"
services:
react-app:
build:
context: ./client
env_file:
- ./client/.env
ports:
- "3000:3000"
node-backend:
build:
context: ./resource-server
env_file:
- ./resource-server/.env
ports:
- "8080:8080"
depends_on:
- react-app
- rabbitmq
- redis
- postgres
links:
- rabbitmq
- redis
- postgres
environment:
AUTH0_AUDIENCE: "http://localhost:8080/api/v1" # Use the same value as in local development
flask-app:
build:
context: ./gptService
env_file:
- ./gptService/.env
ports:
- "8001:5000"
depends_on:
- rabbitmq
- redis
- postgres
links:
- rabbitmq
- redis
- postgres
rabbitmq:
image: "rabbitmq:3.11-management"
ports:
- "5672:5672"
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: "redis/redis-stack:latest"
ports:
- "6379:6379"
postgres:
image: "postgres:latest"
ports:
- "5432:5432"
environment:
POSTGRES_USER: allan7yin
POSTGRES_PASSWORD: password
POSTGRES_DB: QuizGPT