-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfx-security-enterprise-data.yaml
76 lines (71 loc) · 1.84 KB
/
fx-security-enterprise-data.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
version: '3.5'
services:
fx-postgres:
image: postgres
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints: [node.role == manager]
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
command: postgres -c 'shared_buffers=256MB' -c 'max_connections=300'
volumes:
- pgdata:/var/lib/postgresql/data
logging:
driver: syslog
options:
tag: "{{.Name}}/{{.ID}}"
# create db, user, pass
fx-elasticsearch:
image: elasticsearch:5
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints: [node.role == manager]
environment:
- ES_JAVA_OPTS=${ELASTICSEARCH_MEM}
volumes:
- esdata:/usr/share/elasticsearch/data
logging:
driver: syslog
options:
tag: "{{.Name}}/{{.ID}}"
fx-rabbitmq:
image: rabbitmq:management
hostname: fx_rabbitmq_stg
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints: [node.role == manager]
environment:
- RABBITMQ_ERLANG_COOKIE=${RABBITMQ_ERLANG_COOKIE}
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
- RABBITMQ_DEFAULT_VHOST=${RABBITMQ_DEFAULT_VHOST}
- RABBITMQ_VM_MEMORY_HIGH_WATERMARK=${RABBITMQ_VM_MEMORY_HIGH_WATERMARK}
volumes:
- mqdata:/var/lib/rabbitmq
logging:
driver: syslog
options:
tag: "{{.Name}}/{{.ID}}"
# create vhost, user-cp,
# TODO user-mail, user-sync, user-bot
volumes:
pgdata:
esdata:
mqdata: