/
docker-compose.yaml
127 lines (123 loc) · 3.48 KB
/
docker-compose.yaml
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: "3"
services:
db:
image: mongo
ports:
- 27017:27017
# lerna:
# image: yurikrupnik/mussia-ts-lerna
# build:
# context: .
# container_name: lerna
## environment:
## - NODE_ENV_DOCKER=true
## - DATABASE_URL=mongodb://db/service1-db
# deploy:
# replicas: 0
##
##
# gateway1:
# image: yurikrupnik/client-apps_gateway1
# build:
# context: packages/gateway1
# args:
# - port=8000
# container_name: gateway1
# environment:
# - PORT=8000
## - NODE_ENV_DOCKER=true
# - DATABASE_URL=mongodb://db/service1-db
# - DEST_PORT=8000
# - HOST=http://service1
# command: npm run start
# depends_on:
# - db
# - lerna
# ports:
# - 8000:8000
# deploy:
# replicas: 1
##
# functions:
# image: puzzle-plz/functions
# build:
# context: packages/functions
# # root: packages/functions
# container_name: functions
# ports:
# - 3332:3332
# - 3333:3333d
# command: npm run fucntion
languages:
# image: gcr.io/mussia4/languages
build:
context: packages/api/languages
args:
- modulePath=/packages/api/languages
# - port=7000
# - NODE_ENV_DOCKER=true
# - DATABASE_URL=mongodb://db/service1-db
# - HOST=0.0.0.0
container_name: languages
environment:
# - PORT=7000
# - MODULE_PATH=packages/api/languages
- NODE_ENV_DOCKER=true
- DB_URL=mongodb://db/service1-db
ports:
- 7000:8080
# - 8000:8000
command: npm run start
depends_on:
- db
# deploy:
# replicas: 1
#
webserver1:
# image: gcr.io/puzzle-pzl/webserver1
image: webserver1
build:
context: packages/servers/webserver1
args:
# - port=9000
# - NODE_ENV_DOCKER=true
# # - HOST=gateway1
# - DATABASE_URL=mongodb://db/service1-db
# - HOST=0.0.0.0
- modulePath=/packages/servers/webserver1
container_name: webserver1
environment:
# - DEST_PORT=8000
# - HOST=gateway1
- NODE_ENV_DOCKER=true
- NODE_ENV=productionssssss
# - DATABASE_URL=mongodb://db/mussia4
- DB_URL=@cluster0.zurzw.mongodb.net/
- DB_PASSWORD=AXnEdzgKsyg8XVaN
- DB_USER=admin
- PORT=9000
# - NODE_ENV_DOCKER=true
ports:
- 9000:9000
command: npm run start
depends_on:
- db
# - lerna
# deploy:
# replicas: 1
# update_config:
# parallelism: 1
# delay: 10s
# restart_policy:
# condition: on-failure
# visualizer:
## image: dockersamples/visualizer:stable
# ports:
# - "8080:8080"
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock"
# deploy:
# placement:
# constraints: [node.role == manager]
#networks:
# mynet: