-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 903 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (36 loc) · 903 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
services:
web:
image: node:20.18-alpine
container_name: 008-review-web
restart: unless-stopped
ports:
- "81:3000"
volumes:
- .:/app
working_dir: /app/apps/web
environment:
- PORT=3000
- HOSTNAME=0.0.0.0
- BACKEND_API_BASE=http://api:8018
command: >
sh -c "npm config set registry https://registry.npmmirror.com &&
npm install -g pnpm &&
pnpm config set registry https://registry.npmmirror.com &&
pnpm install &&
pnpm build &&
pnpm start"
depends_on:
- api
api:
build:
context: .
dockerfile: Dockerfile.api
container_name: 008-review-api
restart: unless-stopped
volumes:
- .:/app
- /root/control/secrets/api-keys:/root/control/secrets/api-keys
env_file:
- .env
environment:
- PYTHONUNBUFFERED=1