-
-
Notifications
You must be signed in to change notification settings - Fork 284
/
docker-compose.yml
95 lines (86 loc) · 2.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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '3'
services:
mongo:
build:
context: ./mongo
dockerfile: Dockerfile-mongo
ports:
- 27000:27017
volumes:
- "dbconfig:/data/configdb"
- "dbdata:/data/db"
redis:
image: "redis:alpine"
container_name: cache
command: redis-server --requirepass SOME_PASSWORD
ports:
- 6379:6379
environment:
- REDIS_REPLICATION_MODE=master
shopping-server:
build:
context: ./shopping-server
dockerfile: Dockerfile-local
volumes:
- './shopping-server:/app'
- '/app/node_modules'
ports:
- 4201:3000
depends_on:
- mongo
- redis
environment:
NODE_ENV: development
VENIQA_ENV: local
VENIQA_MONGODB_DB: veniqa-prod-db
VENIQA_MONGODB_URL: mongodb://mongo:27017/veniqa-prod-db
VENIQA_REDIS_HOST: redis://cache
VENIQA_REDIS_PORT: 6379
VENIQA_REDIS_PASSWORD: SOME_PASSWORD
VENIQA_REDIS_DB_NUMBER: 0
VENIQA_SESSION_SECRET_KEY: SECRET_KEY
VENIQA_CRYPTO_SECRET_KEY: CRYPTO_SECRET
management-server:
build:
context: ./management-server
dockerfile: Dockerfile-local
volumes:
- './management-server:/app'
- '/app/node_modules'
ports:
- 4202:3000
depends_on:
- mongo
- redis
environment:
NODE_ENV: development
VENIQA_ENV: local
VENIQA_MONGODB_DB: veniqa-prod-db
VENIQA_MONGODB_URL: mongodb://mongo:27017/veniqa-prod-db
VENIQA_REDIS_HOST: redis://cache
VENIQA_REDIS_PORT: 6379
VENIQA_REDIS_PASSWORD: SOME_PASSWORD
VENIQA_REDIS_DB_NUMBER: 1
VENIQA_SESSION_SECRET_KEY: SECRET_KEY
VENIQA_CRYPTO_SECRET_KEY: CRYPTO_SECRET
shopping-webclient:
build:
context: ./shopping-webclient
dockerfile: Dockerfile-local
volumes:
- './shopping-webclient:/app'
- '/app/node_modules'
ports:
- 5201:5201
management-webclient:
build:
context: ./management-webclient
dockerfile: Dockerfile-local
volumes:
- './management-webclient:/app'
- '/app/node_modules'
ports:
- 5202:5202
volumes:
dbdata:
dbconfig: