forked from camunda/camunda-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-web-modeler-beta.yaml
More file actions
153 lines (144 loc) · 5.13 KB
/
docker-compose-web-modeler-beta.yaml
File metadata and controls
153 lines (144 loc) · 5.13 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# Docker compose file for Web Modeler Self-Managed Beta Release [*]. This file is not intended to be used stand-alone.
# Use it in combination with docker-compose.yml:
#
# docker-compose -f docker-compose.yaml -f docker-compose-web-modeler-beta.yaml up -d
#
#
# [*] Web Modeler Self-Managed is currently offered as a beta release [1] with limited availability
# for enterprise customers only. It is not recommended for production use, and there is no maintenance
# service guaranteed. Special terms & conditions [2] apply.
# However, we encourage you to provide feedback via your designated support channel or the Camunda Forum [3].
#
# Links
# [1] - https://docs.camunda.io/docs/next/reference/early-access#beta
# [2] - https://camunda.com/legal/terms/camunda-platform/camunda-platform-8-self-managed/
# [3] - https://forum.camunda.io/
# Notes: this file is using MailHog to simulate a mail server
version: "2.4"
services:
modeler-db:
container_name: modeler-db
image: postgres:${POSTGRES_VERSION}
healthcheck:
test: pg_isready -d modeler-db -U modeler-db-user
interval: 5s
timeout: 15s
retries: 30
environment:
POSTGRES_DB: modeler-db
POSTGRES_USER: modeler-db-user
POSTGRES_PASSWORD: modeler-db-password
networks:
- modeler
modeler-websockets:
container_name: modeler-websockets
image: registry.camunda.cloud/web-modeler-ee/modeler-websockets:${CAMUNDA_WEB_MODELER_VERSION}
ports:
- "8060:8060"
healthcheck:
test: /usr/bin/nc -v localhost 8060
interval: 30s
environment:
APP_NAME: "Web Modeler Self-Managed WebSockets"
APP_DEBUG: "true"
PUSHER_APP_ID: modeler-app
PUSHER_APP_KEY: modeler-app-key
PUSHER_APP_SECRET: modeler-app-secret
PUSHER_APP_CLUSTER: modeler
networks:
- modeler
mailhog:
# If you want to use your own SMTP server, you can remove this container
# and configure RESTAPI_MAIL_HOST, RESTAPI_MAIL_PORT, REST_API_MAIL_USER,
# REST_API_MAIL_PASSWORD and RESTAPI_MAIL_ENABLE_TLS in modeler-restapi
container_name: mailhog
image: mailhog/mailhog:${MAILHOG_VERSION}
ports:
- "1025:1025"
- "8075:8025"
healthcheck:
test: /usr/bin/nc -v localhost 1025
interval: 30s
networks:
- modeler
# Modeler containers
modeler-restapi:
container_name: modeler-restapi
image: registry.camunda.cloud/web-modeler-ee/modeler-restapi:${CAMUNDA_WEB_MODELER_VERSION}
command: /bin/sh -c "java $JAVA_OPTIONS org.springframework.boot.loader.JarLauncher"
depends_on:
modeler-db:
condition: service_healthy
mailhog:
condition: service_started
identity:
condition: service_healthy
healthcheck:
test: /usr/bin/nc -v localhost 8081
interval: 30s
retries: 10
environment:
JAVA_OPTIONS: -Xmx128m
LOGGING_LEVEL_IO_CAMUNDA_MODELER: DEBUG
SPRING_PROFILES_INCLUDE: default-logging
RESTAPI_PUSHER_HOST: modeler-websockets
RESTAPI_PUSHER_PORT: "8060"
RESTAPI_PUSHER_APP_ID: modeler-app
RESTAPI_PUSHER_KEY: modeler-app-key
RESTAPI_PUSHER_SECRET: modeler-app-secret
RESTAPI_OAUTH2_TOKEN_ISSUER: http://localhost:18080/auth/realms/camunda-platform
RESTAPI_OAUTH2_TOKEN_ISSUER_BACKEND_URL: http://keycloak:8080/auth/realms/camunda-platform
RESTAPI_IDENTITY_BASE_URL: http://identity:8084/
RESTAPI_SERVER_URL: http://localhost:8070
RESTAPI_DB_HOST: modeler-db
RESTAPI_DB_NAME: modeler-db
RESTAPI_DB_PORT: 5432
RESTAPI_DB_USER: modeler-db-user
RESTAPI_DB_PASSWORD: modeler-db-password
RESTAPI_MAIL_HOST: mailhog
RESTAPI_MAIL_PORT: 1025
RESTAPI_MAIL_ENABLE_TLS: "false"
RESTAPI_MAIL_FROM_ADDRESS: "noreply@example.com"
networks:
- modeler
- camunda-platform
modeler-webapp:
container_name: modeler-webapp
image: registry.camunda.cloud/web-modeler-ee/modeler-webapp:${CAMUNDA_WEB_MODELER_VERSION}
ports:
- "8070:8070"
depends_on:
modeler-restapi:
condition: service_healthy
healthcheck:
test: /usr/bin/nc -v localhost 8070
interval: 30s
timeout: 15s
retries: 5
environment:
RESTAPI_HOST: modeler-restapi
SERVER_HOST: modeler-webapp
SERVER_URL: http://localhost:8070
PUSHER_APP_ID: modeler-app
PUSHER_KEY: modeler-app-key
PUSHER_SECRET: modeler-app-secret
PUSHER_HOST: modeler-websockets
PUSHER_PORT: "8060"
CLIENT_PUSHER_HOST: localhost
CLIENT_PUSHER_PORT: "8060"
CLIENT_PUSHER_FORCE_TLS: "false"
CLIENT_PUSHER_KEY: modeler-app-key
OAUTH2_CLIENT_ID: web-modeler
OAUTH2_TOKEN_AUDIENCE: web-modeler
OAUTH2_TOKEN_ISSUER: http://localhost:18080/auth/realms/camunda-platform
KEYCLOAK_BASE_URL: http://localhost:18080
KEYCLOAK_REALM: camunda-platform
KEYCLOAK_JWKS_URL: http://keycloak:8080/auth/realms/camunda-platform/protocol/openid-connect/certs
IDENTITY_BASE_URL: http://identity:8084/
PLAY_ENABLED: "true"
networks:
- modeler
- camunda-platform
networks:
camunda-platform:
modeler: