forked from Kashika08/application-tracking-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (45 loc) · 1.04 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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
REACT_APP_BACKEND_BASE_URL: ${REACT_APP_BACKEND_BASE_URL}
networks:
- app-network
volumes:
- ./resume_templates:/resume_templates
backend:
build:
context: ./backend
dockerfile: Dockerfile
environment:
- BASE_FRONTEND_URL=${BASE_FRONTEND_URL}
- MONGODB_HOST_STRING=mongodb://db:27017/mydatabase
networks:
- app-network
volumes:
- ./resume_templates:/resume_templates
db:
image: mongo:5.0
ports:
- '27017:27017'
volumes:
- mongo-data:/data/db # Persistent volume for MongoDB data
networks:
- app-network
cloudflared:
image: cloudflare/cloudflared:latest
command: tunnel --no-autoupdate run ats
environment:
- TUNNEL_TOKEN=${TUNNEL_TOKEN}
networks:
- app-network
depends_on:
- frontend
- backend
volumes:
mongo-data: # Named volume for persistent storage
networks:
app-network:
driver: bridge