-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (52 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
52 lines (52 loc) · 1.16 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
41
42
43
44
45
46
47
48
49
50
51
52
version: '3.8'
services:
main:
build:
context: ${DOCKER_ROOT:-.}
target: development
depends_on:
- nats
env_file:
- ${DOCKER_ROOT:-.}/.env
command: ./build-deploy/main.sh
volumes:
- ${DOCKER_ROOT:-.}:/node:delegated
- node_modules:/node/node_modules
ports:
- "3000:3000"
ci:
build:
context: ${DOCKER_ROOT:-.}
target: development
depends_on:
- main
env_file:
- ${DOCKER_ROOT:-.}/.env
environment:
- NODE_ENV=${NODE_ENV:-development}
command: ./build-deploy/ci.sh
volumes:
- ${DOCKER_ROOT:-.}:/node:delegated
- ci_node_modules:/node/node_modules
nats:
image: nats
ports:
- "8222:8222"
# Enable NATS cluster mode if needed.
# nats-1:
# image: nats
# command: "--cluster nats://0.0.0.0:6222 --routes=nats://ruser:T0pS3cr3t@nats:6222"
# networks:
# skeleton:
# depends_on:
# - nats
# nats-2:
# image: nats
# command: "--cluster nats://0.0.0.0:6222 --routes=nats://ruser:T0pS3cr3t@nats:6222"
# networks:
# skeleton:
# depends_on:
# - nats
volumes:
node_modules:
ci_node_modules: