-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
51 lines (47 loc) · 1015 Bytes
/
Copy pathcompose.yaml
File metadata and controls
51 lines (47 loc) · 1015 Bytes
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
services:
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
args:
- VITE_PAYPAL_CLIENT_ID=${VITE_PAYPAL_CLIENT_ID}
ports:
- "80:80"
depends_on:
- backend
networks:
- app-network
environment:
- NODE_ENV=${NODE_ENV}
- BACKEND_URL=${BACKEND_URL}
backend:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- "5001:5001"
environment:
- MONGO_URI=${MONGO_URI}
- NODE_PORT=${NODE_PORT}
- JWT_SECRET=${JWT_SECRET}
- NODE_ENV=${NODE_ENV}
- FRONTEND_URL=${FRONTEND_URL}
- REDIS_URL=${REDIS_URL}
networks:
- app-network
restart: unless-stopped
redis:
image: redis:latest
command: redis-server --requirepass ${REDIS_PASSWORD} --bind 0.0.0.0
container_name: redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- app-network
volumes:
redis-data:
networks:
app-network:
driver: bridge