-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathdocker-compose.yml
64 lines (60 loc) · 1.54 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
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3'
services:
backend:
container_name: backend
depends_on:
- mongodb
- rabbitmq
build:
context: backend
args:
- GIT_REV=${GIT_HASH}
image: ${REGISTRY_URL}backend-${SUBDOMAIN:-localhost}:${GIT_HASH:-latest}
restart: 'always'
env_file: env/backend.env
command: npm start
ports:
- '3000:3000'
primus:
container_name: primus
depends_on:
- mongodb
- rabbitmq
build: primus
image: ${REGISTRY_URL}primus-${SUBDOMAIN:-localhost}:${GIT_HASH:-latest}
restart: 'always'
env_file: env/primus.env
command: npm start
ports:
- '2333:2333'
frontend:
container_name: frontend
build:
context: frontend
args:
- BUILD_ENV=${BUILD_ENV:-prod}
- SERVER_NAME=${SERVER_NAME}
- API_URL=${API_URL:-http://localhost:3000}
- API_VERSION=${API_VERSION:-api}
- PRIMUS_URL=${PRIMUS_URL:-http://localhost:2333}
image: ${REGISTRY_URL}frontend-${SUBDOMAIN:-localhost}:${GIT_HASH:-latest}
restart: 'always'
ports:
- '4200:80'
mongodb:
container_name: mongodb
build: mongodb
image: ${REGISTRY_URL}mongodb-${SUBDOMAIN:-localhost}:${GIT_HASH:-latest}
restart: 'always'
ports:
- '27017:27017'
env_file: env/mongodb.env
rabbitmq:
container_name: rabbitmq
build: rabbitmq
image: ${REGISTRY_URL}rabbitmq-${SUBDOMAIN:-localhost}:${GIT_HASH:-latest}
env_file: env/rabbitmq.env
ports:
- '15672:15672'
- '5672:5672'
- '1883:1883'