-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (71 loc) · 1.84 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
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
main_http_api:
build:
context: .
dockerfile: ./apps/main-http-api/Dockerfile
target: development
# container_name: main-http-api
command: npm run start:dev main-http-api
# env_file:
# - ./apps/main_http_api/.env
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
ports:
- "3000:3000"
key_manage_service:
build:
context: .
dockerfile: ./apps/key-manage-service/Dockerfile
target: development
# container_name: key-manage-service
command: npm run start:dev key-manage-service
# env_file:
# - ./app/key-manage-service/.env
depends_on:
- kms_pg_db
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
token_info_service:
build:
context: .
dockerfile: ./apps/token-info-service/Dockerfile
target: development
# container_name: token-info-service
command: npm run start:dev token-info-service
# env_file:
# - ./app/token-info-service/.env
depends_on:
- tis_mongo_db
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
nats:
image: nats
ports:
- 4222:4222
kms_pg_db:
image: postgres:15.3-alpine3.18
restart: always
environment:
- POSTGRES_DB=key_manage_service
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
volumes:
- ./db:/data/pg_db
- ./create-kms-db.sql:/docker-entrypoint-initdb.d/create_database.sql
tis_mongo_db:
image: mongo
restart: always
ports:
- "27017:27017"
volumes:
- ./db:/data/mongo_db
- ./init-mongo.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
environment:
- MONGO_INITDB_DATABASE=token_info_service
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password