-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
42 lines (42 loc) · 1.02 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
services:
api:
build:
context: .
dockerfile: Dockerfile
target: base
ports:
- "3000:3000"
environment:
- PORT=3000
- REDIS_URL=redis://:redis@redis:6379
volumes:
- ./packages/api:/app/packages/api
- ./data:/app/packages/api/data
- /app/node_modules
- /app/packages/api/node_modules
- /app/packages/web/node_modules
command: lerna run dev --scope=@otoge.app/api
web:
build:
context: .
dockerfile: Dockerfile
target: base
ports:
- "8080:8080"
environment:
- PORT=8080
- REACT_APP_GOOGLE_MAPS_API_KEY=
- REACT_APP_API_BASE_URL=http://localhost:3000
volumes:
- ./packages/web:/app/packages/web
- /app/node_modules
- /app/packages/api/node_modules
- /app/packages/web/node_modules
command: lerna run dev --scope=@otoge.app/web
redis:
image: redis/redis-stack
ports:
- "6379:6379"
- "8001:8001"
environment:
- REDIS_ARGS=--requirepass redis