-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (37 loc) · 1.07 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
services:
frontend:
build:
context: .
dockerfile: deploy/docker/frontend.Dockerfile
args:
- NEXT_PUBLIC_OPENWEATHER_API_KEY=${NEXT_PUBLIC_OPENWEATHER_API_KEY}
- NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL}
- NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL}
ports:
- "3000:3000"
env_file:
- .env
environment:
- PORT=3000
- NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL}
- NEXT_PUBLIC_OPENWEATHER_API_KEY=${NEXT_PUBLIC_OPENWEATHER_API_KEY}
- NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL}
depends_on:
- backend
backend:
build:
context: .
dockerfile: deploy/docker/backend.Dockerfile
args:
- NODE_ENV=${NODE_ENV}
- PORT=${PORT}
- CORS_ORIGINS=${CORS_ORIGINS}
- OPENWEATHER_API_KEY=${OPENWEATHER_API_KEY}
- BASE_URL=${BASE_URL}
- RATE_LIMIT_WINDOW_MS=${RATE_LIMIT_WINDOW_MS}
- RATE_LIMIT_MAX=${RATE_LIMIT_MAX}
- CACHE_TTL=${CACHE_TTL}
ports:
- "5000:5000"
env_file:
- .env