-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
154 lines (141 loc) · 3.26 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
version: "3.2"
services:
admin:
image: node:10.15.3
working_dir: /apps/warehouse/admin
command: npm run start
ports:
- "4200:4200"
volumes:
- type: bind
source: .
target: /apps/warehouse
lb:
image: nginx:stable
ports:
- "80:80"
volumes:
- type: bind
source: ./nginx.warehouse.conf
target: /etc/nginx/conf.d/default.conf
- type: bind
source: ./wait-for
target: /wait/wait-for
depends_on:
- web
web:
image: shoppinpal/node:6.10
working_dir: /apps/warehouse
entrypoint: ./dev-entrypoint.sh
ports:
- "3000:3000"
environment:
NODE_ENV: local
env_file: .env
command: ./node_modules/nodemon/bin/nodemon.js server/server.js
volumes:
- type: bind
source: .
target: /apps/warehouse
depends_on:
- db
worker2:
image: shoppinpal/node:6.10
working_dir: /apps/workers
command: node sqsWorker.js
volumes:
- type: bind
source: ./workers
target: /apps/workers
restart: always
env_file: worker2.env
depends_on:
- memcache
sync-engine:
image: shoppinpal/node:6.10
working_dir: /apps/workers
command: node syncWorker.js
volumes:
- type: bind
source: ./workers
target: /apps/workers
restart: always
env_file: syncWorker.env
db:
image: mongo:4.2
ports:
- "27020:27017"
volumes:
- type: bind
source: ./docker/volumes/mongo
target: /data/db
memcache:
image: memcached:latest
# mssql:
# image: microsoft/mssql-server-linux
# volumes:
# - type: bind
# source: ./docker/volumes/mssql
# target: /var/opt/mssql
# env_file: mssql.env
# ports:
# - "1433:1433"
notification:
image: "node:8.16"
volumes:
- './notification-service:/notification-service'
working_dir: /notification-service
command: node index.js
# command: ./node_modules/nodemon/bin/nodemon.js index.js
env_file:
- ./notification-service/notification.env
ports:
- "3001:3001"
depends_on:
- redis
redis:
image: "bitnami/redis:4.0"
environment:
- REDIS_PASSWORD=password
- REDIS_EXTRA_FLAGS=--maxmemory 100mb
ports:
- 6379:6379
goaws:
image: pafortin/goaws
ports:
- 4100:4100
volumes:
- ./goaws:/conf
networks:
default:
aliases:
- goaws.stockup.localdomain
- sqs.us-west-2.goaws
- sqs.us-east-1.goaws
- us-west-2.goaws
- us-east-1.goaws
minio:
image: minio/minio
ports:
- 9001:9001
- 9000:9000
volumes:
- ./docker/volumes/minio/data:/export
command: server --console-address :9001 /export
environment:
MINIO_ROOT_USER: stockup
MINIO_ROOT_PASSWORD: stockup.123
networks:
default:
aliases:
- minio.stockup.localdomain
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio.stockup.localdomain:9000 stockup stockup.123;
/usr/bin/mc mb myminio/stockup-csv-reports;
/usr/bin/mc mb myminio/stockup-reorder-points;
exit 0;"