-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (48 loc) · 1.13 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
43
44
45
46
47
48
49
50
51
version: '3.8'
services:
base:
build:
context: .
args:
BASE_IMAGE: node:18.18-bullseye
NODE_ENV: development
environment:
NODE_ENV: development
dev:
extends:
service: base
container_name: coinmerce-assignment-dev
build:
context: ./docker
dockerfile: docker/dev.Dockerfile
args:
BASE_IMAGE: node:18.18-bullseye
NODE_ENV: development
environment:
NODE_ENV: development
BINANCE_API_BASE_URL: ${BINANCE_API_BASE_URL}
BINANCE_WEBSOCKET_URL: ${BINANCE_WEBSOCKET_URL}
command: npm run dev
ports:
- '3000:3000'
volumes:
- .:/app
prod:
extends:
service: base
container_name: coinmerce-assignment-prod
build:
context: ./docker
dockerfile: docker/prod.Dockerfile
args:
BASE_IMAGE: node:18.18-bullseye-slim
NODE_ENV: production
environment:
NODE_ENV: production
BINANCE_API_BASE_URL: ${BINANCE_API_BASE_URL}
BINANCE_WEBSOCKET_URL: ${BINANCE_WEBSOCKET_URL}
ports:
- '3000:3000'
volumes:
- .:/app
command: npm run start