-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
96 lines (86 loc) · 1.98 KB
/
docker-compose.prod.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.4'
services:
redis:
image: redis:alpine
ports:
- "6379:6379"
volumes:
- cache:/data
networks:
- redis-network
auth:
build:
context: auth
dockerfile: Dockerfile
environment:
- MONGO_CLIENT=mongodb+srv://lean:Lean123456@cluster0.8jk604t.mongodb.net/meetings
networks:
- api-network
scheduler:
image: tosanchez/atsc-meetings:scheduler-dev
environment:
- SPRING_APPLICATION_NAME=Scheduler
- SERVER_PORT=8080
- SPRINGDOC_SWAGGER_UI_PATH=/scheduler-docs
- MONGODB_URI=mongodb+srv://lean:Lean123456@cluster0.8jk604t.mongodb.net/meetings
- MONGODB_NAME=meetings
networks:
- api-network
depends_on:
- auth
gateway:
build:
context: api-gateway
dockerfile: Dockerfile
depends_on:
- redis
ports:
- "80:80"
environment:
- 'GATEWAY_SERVICES=[{"name": "Auth", "base_url": "http://auth:8000"},
{"name": "Scheduler", "base_url": "http://scheduler:8080", "readiness_url": "/actuator/health"}]'
- REDIS_HOST=redis://redis:6379
- FASTAPI_USE_LIMITER=1
- FASTAPI_LIMITER_THRESHOLD=30
- FASTAPI_LIMITER_INTERVAL=60
networks:
- api-network
- redis-network
- web-network
web:
environment:
- VITE_URL=http://127.0.0.1:80/api/v1/
build:
context: web
dockerfile: Dockerfile
args:
- VITE_URL=http://127.0.0.1:80/api/v1/
ports:
- "5173:5173"
depends_on:
- auth
- scheduler
networks:
- web-network
bot:
environment:
- TOKEN=6103437457:AAE4zwSvDGB7um2E1euk0-x0SMoSl69EbRc
- API_URL=http://gateway:80/api/v1/
build:
context: telegram-bot
dockerfile: Dockerfile
depends_on:
- auth
- scheduler
networks:
- web-network
volumes:
cache:
driver: local
networks:
api-network:
driver: bridge
redis-network:
driver: bridge
web-network:
driver: bridge