docker-compose.yml 2.93 KB
Newer Older
José Gato Luis's avatar
José Gato Luis committed
1
2
3
4
version: '2'
volumes:
  MONGO-Storage:
    external: true
José Gato Luis's avatar
José Gato Luis committed
5
    driver: 'rancher-nfs'
José Gato Luis's avatar
José Gato Luis committed
6
7
  AEON-Config-Volume:
    external: true
José Gato Luis's avatar
José Gato Luis committed
8
    driver: 'rancher-nfs'
José Gato Luis's avatar
José Gato Luis committed
9
10
  RABBIT-Storage:
    external: true
José Gato Luis's avatar
José Gato Luis committed
11
    driver: 'rancher-nfs'
José Gato Luis's avatar
José Gato Luis committed
12
services:
José Gato Luis's avatar
José Gato Luis committed
13
14
15
16
17
18
19
20
21
  SMTP:
    image: namshi/smtp
    environment:
      MAILNAME: atosresearch.eu
    stdin_open: true
    tty: true
    labels:
      io.rancher.scheduler.affinity:host_label: deviceid=AEON-PROD3
      io.rancher.container.pull_image: always
22
  Proxy:
José Gato Luis's avatar
José Gato Luis committed
23
24
    image: rancher/lb-service-haproxy:v0.7.5
    ports:
25
26
    - 3000:3000/tcp
    - 8000:8000/tcp
José Gato Luis's avatar
José Gato Luis committed
27
    - 7789:7789/tcp
José Gato Luis's avatar
José Gato Luis committed
28
29
    - 443:443/tcp
    - 8080:8080/tcp
30
31
32
33
    depends_on:
      - "API"
      - "Dashboard"
      - "Events-Manager"
José Gato Luis's avatar
José Gato Luis committed
34
    labels:
José Gato Luis's avatar
José Gato Luis committed
35
      io.rancher.scheduler.affinity:host_label: deviceID=AEON-PROD1
José Gato Luis's avatar
José Gato Luis committed
36
37
      io.rancher.container.agent.role: environmentAdmin
      io.rancher.container.create_agent: 'true'
José Gato Luis's avatar
José Gato Luis committed
38
39
40
41
42
43
44
45
46
47
48
  IDM:
    image: jboss/keycloak
    environment:
      KEYCLOAK_USER: admin
      KEYCLOAK_PASSWORD: admin
      PROXY_ADDRESS_FORWARDING: 'true'
    stdin_open: true
    tty: true
    labels:
      io.rancher.container.pull_image: always
      io.rancher.scheduler.affinity:host_label: deviceid=AEON-PROD1
José Gato Luis's avatar
José Gato Luis committed
49
50
51
52
53
54
55
56
57
  Mongo:
    image: jgato/aeon-mongo:3.2.14
    stdin_open: true
    volumes:
    - AEON-Config-Volume:/etc/aeon/config:ro
    - MONGO-Storage:/data/db:nocopy
    tty: true
    user: nobody
    labels:
José Gato Luis's avatar
José Gato Luis committed
58
      io.rancher.scheduler.affinity:host_label: deviceid=AEON-PROD1
José Gato Luis's avatar
José Gato Luis committed
59
60
61
62
63
64
65
66
67
68
69
70
71
      io.rancher.container.pull_image: always
  Rabbit:
    image: jgato/aeon-rabbitmq:3.6.6-management-alpine
    hostname: localhost
    stdin_open: true
    volumes:
    - AEON-Config-Volume:/etc/aeon/config:ro
    - RABBIT-Storage:/var/lib/rabbitmq:nocopy
    tty: true
    ports:
    - 15672:15672/tcp
    user: nobody
    labels:
José Gato Luis's avatar
José Gato Luis committed
72
      io.rancher.scheduler.affinity:host_label: deviceid=AEON-PROD2
José Gato Luis's avatar
José Gato Luis committed
73
      io.rancher.container.pull_image: always
74
  Dashboard:
José Gato Luis's avatar
José Gato Luis committed
75
    image: jgato/aeon-dashboard:0.3.0-alpine
76
77
78
79
80
81
    stdin_open: true
    volumes:
    - AEON-Config-Volume:/etc/aeon/config/:ro
    tty: true
    command:
    - start
82
83
    depends_on:
      - "API"
84
85
    labels:
      io.rancher.container.pull_image: always
José Gato Luis's avatar
José Gato Luis committed
86
  API:
José Gato Luis's avatar
José Gato Luis committed
87
    image: jgato/aeon-api:0.3.0-alpine
José Gato Luis's avatar
José Gato Luis committed
88
89
90
91
92
93
    stdin_open: true
    volumes:
    - AEON-Config-Volume:/etc/aeon/config/:ro
    tty: true
    links:
    - Rabbit:RABBIT
José Gato Luis's avatar
José Gato Luis committed
94
95
    - Mongo:MONGO
    - SMTP:SMTP
José Gato Luis's avatar
José Gato Luis committed
96
97
    command:
    - start
98
    depends_on:
José Gato Luis's avatar
José Gato Luis committed
99
100
101
      - "Mongo"
      - "Rabbit"
      - "SMTP"
José Gato Luis's avatar
José Gato Luis committed
102
103
104
    labels:
      io.rancher.container.pull_image: always
  Events-Manager:
José Gato Luis's avatar
José Gato Luis committed
105
    image: jgato/aeon-events-manager:0.3.0-alpine
José Gato Luis's avatar
José Gato Luis committed
106
107
108
109
110
111
    stdin_open: true
    volumes:
    - AEON-Config-Volume:/etc/aeon/config/:ro
    tty: true
    links:
    - Rabbit:RABBIT
José Gato Luis's avatar
José Gato Luis committed
112
    - Mongo:MONGO
José Gato Luis's avatar
José Gato Luis committed
113
114
    command:
    - start
115
    depends_on:
José Gato Luis's avatar
José Gato Luis committed
116
117
      - "Mongo"
      - "Rabbit"
José Gato Luis's avatar
José Gato Luis committed
118
119
    labels:
      io.rancher.container.pull_image: always
José Gato Luis's avatar
José Gato Luis committed
120