-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.local.yml
55 lines (51 loc) · 1.18 KB
/
docker-compose.local.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
services:
redis:
env_file:
- ./apps/backend/.env
image: redis:7
ports:
- "6379:6379"
command: /bin/sh -c "redis-server --requirepass $${REDIS_PASSWORD:?REDIS_PASSWORD variable is not set}"
# environment:
# - REDIS_PASSWORD=${REDIS_PASS}
networks:
- ondc
api:
build:
context: .
dockerfile: ./apps/backend/Dockerfile.backend
# extends: base
ports:
- "3000:3000"
env_file:
- ./apps/backend/.env
# environment:
# - PORT
# - RATE_LIMIT_MODE=${RATE_LIMIT_MODE}
# - RATE_LIMIT_24HR=${RATE_LIMIT_24HR}
# - PRIVATE_KEY=${PRIVATE_KEY}
# - UNIQUE_KEY=${UNIQUE_KEY}
# - SUBSCRIBER_ID=${SUBSCRIBER_ID}
# - DATABASE_URL=${DATABASE_URL}
restart: always
depends_on:
- redis
networks:
- ondc
web:
build:
context: .
dockerfile: ./apps/frontend/Dockerfile.frontend
env_file:
- ./apps/frontend/.env
# environment:
# - VITE_SERVER_URL=${VITE_SERVER_URL}
# - MOCKSERVER_ID=${MOCKSERVER_ID}
# - NODE_OPTIONS=${NODE_OPTIONS}
ports:
- "8080:80"
restart: always
networks:
- ondc
networks:
ondc: