-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
127 lines (120 loc) · 5.05 KB
/
docker-compose.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
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
#
# Camunda Platform Accelerator for Form.io Community License v1.0
#
# This Camunda Platform Accelerator for Form.io Community License v1.0 (“this Agreement”) sets
# forth the terms and conditions on which Soft Cannery LTD. (“the Licensor”) makes available
# this software (“the Software”). BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING
# THE SOFTWARE YOU INDICATE YOUR ACCEPTANCE TO, AND ARE ENTERING INTO A CONTRACT WITH,
# THE LICENSOR ON THE TERMS SET OUT IN THIS AGREEMENT. IF YOU DO NOT AGREE TO THESE TERMS,
# YOU MUST NOT USE THE SOFTWARE. IF YOU ARE RECEIVING THE SOFTWARE ON BEHALF OF A LEGAL ENTITY,
# YOU REPRESENT AND WARRANT THAT YOU HAVE THE ACTUAL AUTHORITY TO AGREE TO THE TERMS AND
# CONDITIONS OF THIS AGREEMENT ON BEHALF OF SUCH ENTITY. “Licensee” means you, an individual,
# or the entity on whose behalf you are receiving the Software.
#
# Permission is hereby granted, free of charge, to the Licensee obtaining a copy of this
# Software and associated documentation files, to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute,
# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
# is furnished to do so, subject in each case to the following conditions:
#
# Condition 1: If the Licensee distributes the Software or any derivative works of the Software,
# the Licensee must attach this Agreement.
#
# Condition 2: Without limiting other conditions in this Agreement, the grant of rights under
# this Agreement does not include the right to provide Commercial Product or Service. Written
# permission from the Licensor is required to provide Commercial Product or Service.
#
# A “Commercial Product or Service” is software or service intended for or directed towards
# commercial advantage or monetary compensation for the provider of the product or service
# enabling parties to deploy and/or execute Commercial Product or Service.
#
# If the Licensee is in breach of the Conditions, this Agreement, including the rights granted
# under it, will automatically terminate with immediate effect.
#
# SUBJECT AS SET OUT BELOW, THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
# NOTHING IN THIS AGREEMENT EXCLUDES OR RESTRICTS A PARTY’S LIABILITY FOR (A) DEATH OR PERSONAL
# INJURY CAUSED BY THAT PARTY’S NEGLIGENCE, (B) FRAUD, OR (C) ANY OTHER LIABILITY TO THE EXTENT
# THAT IT CANNOT BE LAWFULLY EXCLUDED OR RESTRICTED.
#
version: "3.2"
services:
nginx:
image: nginx:latest
container_name: proxy
ports:
- 80:80
links:
- camunda-bpm
- spring-content
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
postgres:
image: postgres
container_name: postgres
ports:
- 5432:5432/tcp
volumes:
- postgres:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
camunda-bpm:
image: ${IMG_REPO}camunda-formio-example:${IMAGE_TAG}
build:
context: ./camunda-formio-example
container_name: camunda
ports:
- 8080:8080
env_file:
- .env
volumes:
- ${BPMN_DIR}:/opt/config/bpmn
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/postgres
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: password
SPRING_JPA_GENERATE_DDL: "true"
SPRING_JPA_HIBERNATE_DDL_AUTO: update
CAMUNDA_BPM_ADMIN_USER_ID: kermit
CAMUNDA_BPM_ADMIN_USER_PASSWORD: password
SERVER_SERVLET_CONTEXT_PATH: "/bpm"
SPRING_CONTENT_URL: "http://localhost/bpm"
spring-content:
image: ${IMG_REPO}camunda-formio-content:${IMAGE_TAG}
build:
context: ./camunda-formio-content
container_name: content
ports:
- 8081:8081
volumes:
- files:/mnt/files
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/postgres
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: password
SPRING_JPA_GENERATE_DDL: "true"
SPRING_JPA_HIBERNATE_DDL_AUTO: update
SPRING_CONTENT_FS_FILESYSTEM_ROOT: /mnt/files
SPRING_SERVLET_MULTIPART_MAX_FILE_SIZE: "100MB"
SPRING_SERVLET_MULTIPART_MAX_REQUEST_SIZE: "100MB"
SPRING_CONTENT_URL: "http://localhost/content"
SERVER_SERVLET_CONTEXT_PATH: "/content"
camunda-formio-react-app:
image: ${IMG_REPO}camunda-formio-react-app:${IMAGE_TAG}
build:
context: ./camunda-formio-react-app
container_name: react
ports:
- 3000:3000
environment:
CAMUNDA_BPM_URL: "http://localhost/bpm"
PUBLIC_URL: "http://localhost"
volumes:
postgres: {}
files: {}