-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfx-security-enterprise-control-plane.yaml
45 lines (45 loc) · 1.28 KB
/
fx-security-enterprise-control-plane.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
version: '3.5'
# networking
# volumes
services:
fx-control-plane:
image: "fxlabs/control-plane:latest"
#autodestroy: ALWAYS
#autorestart: ON_FAILURE
#autoredeploy: true
#target_num_containers: 2
#sequential_deployment: true
#deployment_strategy: high_availability
deploy:
replicas: 1
update_config:
parallelism: 2
delay: 10s
order: stop-first
placement:
constraints: [node.role == manager]
environment:
# RabbitMQ
- RABBITMQ_HOST=${RABBITMQ_HOST}
- RABBITMQ_PORT=${RABBITMQ_PORT}
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
- RABBITMQ_DEFAULT_VHOST=${RABBITMQ_DEFAULT_VHOST}
# Postgres
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
# ES
- ELASTICSEARCH_HOST=${ELASTICSEARCH_HOST}
- JAVA_OPTS=${CONTROL_PLANE_MEM}
logging:
driver: syslog
options:
tag: "{{.Name}}/{{.ID}}"
# ElasticSearch
# Redis
# inject rabbit-host, port, vhost, user-cp, user-cp-pass
# inject postgres, port, db, user, pass
# inject elasticsearch, port,
# inject redis, port