-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 1.02 KB
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
services:
# ─── NestJS API ────────────────────────────────────────────
api:
build:
context: ./api
dockerfile: Dockerfile
container_name: polygekko-api
restart: unless-stopped
env_file:
- .env
environment:
PORT: 3001
ports:
- "3001:3001"
networks:
- polygekko
# ─── Next.js Frontend ──────────────────────────────────────
web:
build:
context: ./web
dockerfile: Dockerfile
args:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:3001}
container_name: polygekko-web
restart: unless-stopped
env_file:
- .env
environment:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:3001}
ports:
- "3000:3000"
depends_on:
- api
networks:
- polygekko
networks:
polygekko:
name: polygekko_network