-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.19 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
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
env_file: './server/api/.env'
ports:
- '5555:5555'
environment:
MONGO_URI: 'mongodb://mongo:27017/subscriptions_tracker'
depends_on:
- mongo
restart: 'on-failure'
bot:
build:
context: .
dockerfile: Dockerfile.bot
env_file:
- './bot/.env'
- './.env'
depends_on:
- backend
- mongo
command:
[
'sh',
'-c',
'if [ -n "$VITE_WITH_TELEGRAM" ]; then python main.py; fi',
]
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
ports:
- '5173:80'
env_file: './.env'
environment:
VITE_BACKEND_URL: 'http://backend:5555'
depends_on:
- backend
restart: 'on-failure'
mongo:
image: mongo:latest
ports:
- '27017:27017'
volumes:
- mongo_data:/data/db
restart: 'on-failure'
volumes:
mongo_data: