-
Notifications
You must be signed in to change notification settings - Fork 2
/
common-services.yml
68 lines (63 loc) · 1.59 KB
/
common-services.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
# Nginx as a load-balancing tier and reverse proxy, with caching and optional SSL termination
nginx:
image: synchro/synchro_nginx_ap:1.0.2
mem_limit: 128m
command: >
/bin/containerpilot
-config file:///etc/containerpilot/containerpilot.json
nginx -g "daemon off;"
restart: always
ports:
- 80
- 443
expose:
- 9090
# The Synchro microservice
synchro:
image: synchro/synchro_ap:1.5.14
mem_limit: 512m
restart: always
expose:
- 80
- 9090
environment:
- SYNCHRO_CONFIG_URL=stashbox/config/config.json
- SYNCHRO__PORT=80
- SYNCHRO__SESSIONSTORE_PACKAGE=synchro-api
- SYNCHRO__SESSIONSTORE_SERVICE=IoRedisSessionStore
- SYNCHRO__SESSIONSTORE__sentinels=true
- SYNCHRO__SESSIONSTORE__consulRetries=5
- SYNCHRO__SESSIONSTORE__consulDelayMs=5000
- SYNCHRO__LOG4JS_CONFIG__levels__synchro-ioredis-session=DEBUG
# StashBox
stashbox:
image: synchro/stashbox_ap:1.1.3
mem_limit: 128m
expose:
- 80
# redis
redis:
image: synchro/synchro_redis_ap:1.0.0
mem_limit: 128m
restart: always
expose:
- 6379
- 26379
# service discovery tier
consul:
image: progrium/consul:latest
mem_limit: 128m
command: -server -bootstrap -ui-dir /ui
restart: always
expose:
- 8500
dns:
- 127.0.0.1
# Prometheus is an open source performance monitoring tool
# it is included here for demo purposes and is not required
prometheus:
image: autopilotpattern/prometheus:latest
mem_limit: 1g
restart: always
ports:
- 9090