forked from anwarghammam/Monitoring-Docker-Swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcbe-app.yml
50 lines (50 loc) · 1.65 KB
/
cbe-app.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
services:
cbeapp:
depends_on: [cbedb, cbemq]
deploy:
placement:
constraints: [node.role == manager]
environment: [DBENGINE=postgresql, DBHOST=cbedb, DBNAME=cbe, DBPASSWORD=super,
DBUSER=super, MQHOST=cbemq, MQUSER=super, MQPASSWORD=super, MQRESTSERVER=cbe.sphinx.co.nz,
MQRESTPORT=443, MQRESTPROTOCOL=https, SUNAME=super, SUEMAIL=super@super.com,
SUPASS=super]
image: semprini/cbe-utilities
ports: ['8000:8000']
restart: unless-stopped
cbedb:
deploy:
placement:
constraints: [node.role == manager]
environment: {POSTGRES_DB: cbe, POSTGRES_PASSWORD: super, POSTGRES_USER: super}
image: postgres:latest
restart: unless-stopped
volumes: ['db-data:/var/lib/postgresql/data']
cbedbadmin:
deploy:
placement:
constraints: [node.role == manager]
environment: {PGADMIN_DEFAULT_EMAIL: super@super.com, PGADMIN_DEFAULT_PASSWORD: super}
image: dpage/pgadmin4
links: [cbedb]
ports: [80]
restart: unless-stopped
cbemq:
deploy:
placement:
constraints: [node.role == manager]
environment: {RABBITMQ_DEFAULT_PASS: super, RABBITMQ_DEFAULT_USER: super, TCP_PORTS: '5672,5671'}
image: rabbitmq:3-management-alpine
ports: ['8080:15672', 5671, 5672]
restart: unless-stopped
haproxy:
deploy:
placement:
constraints: [node.node == Worker1 ]
environment: {MODE: tcp}
expose: [5671, 5672, 8000, 9000]
image: dockercloud/haproxy:latest
links: [cbemq, cbeapp, cbedbadmin]
restart: unless-stopped
volumes: ['/var/run/docker.sock:/var/run/docker.sock']
version: '3.2'
volumes: {db-data: null}