-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
58 lines (57 loc) · 1.21 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
#
# Copyright SecureKey Technologies Inc. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
version: '3'
services:
as:
build: ./as
ports:
- '3000:3000'
environment:
- MONGO_URL=mongodb://mongo-as:27017/xyzdb?authSource=admin
- MONGO_USERNAME=docker
- MONGO_PASSWORD=docker
- DEBUG
links:
- mongo-as
depends_on:
- mongo-as
client-api:
build: ./client/api
ports:
- '3001:3001'
environment:
- MONGO_URL=mongodb://mongo-client:27017/xyzdb?authSource=admin
- MONGO_USERNAME=docker
- MONGO_PASSWORD=docker
- DEBUG
links:
- mongo-client
depends_on:
- mongo-client
mongo-as:
image: mongo:latest
volumes:
- ./mongo/as/data:/mongo/data
environment:
- MONGO_INITDB_ROOT_USERNAME=docker
- MONGO_INITDB_ROOT_PASSWORD=docker
mongo-client:
image: mongo:latest
volumes:
- ./mongo/client/data:/mongo/data
environment:
- MONGO_INITDB_ROOT_USERNAME=docker
- MONGO_INITDB_ROOT_PASSWORD=docker
web:
build: ./client/web
ports:
- '5000:5000'
links:
- client-api
depends_on:
- client-api
environment:
- DEBUG