-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
153 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
version: '2.3' | ||
|
||
services: | ||
conductor-server: | ||
environment: | ||
- CONFIG_PROP=config-postgres-es7.properties | ||
image: conductor:server | ||
container_name: conductor-server | ||
build: | ||
context: ../ | ||
dockerfile: docker/server/Dockerfile | ||
networks: | ||
- internal | ||
ports: | ||
- 8080:8080 | ||
- 5000:5000 | ||
healthcheck: | ||
test: [ "CMD", "curl","-I" ,"-XGET", "http://localhost:8080/health" ] | ||
interval: 60s | ||
timeout: 30s | ||
retries: 12 | ||
links: | ||
- conductor-postgres:postgresdb | ||
- conductor-elasticsearch:es | ||
depends_on: | ||
conductor-postgres: | ||
condition: service_healthy | ||
conductor-elasticsearch: | ||
condition: service_healthy | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "1k" | ||
max-file: "3" | ||
|
||
conductor-postgres: | ||
image: postgres | ||
environment: | ||
- POSTGRES_USER=conductor | ||
- POSTGRES_PASSWORD=conductor | ||
volumes: | ||
- pgdata-conductor:/var/lib/postgresql/data | ||
networks: | ||
- internal | ||
ports: | ||
- 6432:5432 | ||
healthcheck: | ||
test: timeout 5 bash -c 'cat < /dev/null > /dev/tcp/localhost/5432' | ||
interval: 5s | ||
timeout: 5s | ||
retries: 12 | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "1k" | ||
max-file: "3" | ||
|
||
conductor-elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.11 | ||
environment: | ||
- "ES_JAVA_OPTS=-Xms512m -Xmx1024m" | ||
- xpack.security.enabled=false | ||
- discovery.type=single-node | ||
volumes: | ||
- esdata-conductor:/usr/share/elasticsearch/data | ||
networks: | ||
- internal | ||
ports: | ||
- 9201:9200 | ||
healthcheck: | ||
test: curl http://localhost:9200/_cluster/health -o /dev/null | ||
interval: 5s | ||
timeout: 5s | ||
retries: 12 | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "1k" | ||
max-file: "3" | ||
|
||
volumes: | ||
pgdata-conductor: | ||
driver: local | ||
esdata-conductor: | ||
driver: local | ||
|
||
networks: | ||
internal: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Database persistence type. | ||
conductor.db.type=postgres | ||
conductor.queue.type=postgres | ||
conductor.external-payload-storage.type=postgres | ||
|
||
# postgres | ||
spring.datasource.url=jdbc:postgresql://postgresdb:5432/postgres | ||
spring.datasource.username=conductor | ||
spring.datasource.password=conductor | ||
|
||
# Elastic search instance indexing is enabled. | ||
conductor.indexing.enabled=true | ||
conductor.elasticsearch.url=http://es:9200 | ||
conductor.elasticsearch.indexName=conductor | ||
conductor.elasticsearch.version=7 | ||
conductor.elasticsearch.clusterHealthColor=yellow | ||
|
||
# Additional modules for metrics collection exposed to Prometheus (optional) | ||
conductor.metrics-prometheus.enabled=true | ||
management.endpoints.web.exposure.include=prometheus | ||
|
||
# Load sample kitchen-sink workflow | ||
loadSample=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
# Database persistence type. | ||
conductor.db.type=postgres | ||
conductor.queue.type=postgres | ||
conductor.external-payload-storage.type=postgres | ||
|
||
# postgres | ||
# Database connectivity | ||
spring.datasource.url=jdbc:postgresql://postgresdb:5432/postgres | ||
spring.datasource.username=conductor | ||
spring.datasource.password=conductor | ||
|
||
# Elastic search instance indexing is enabled. | ||
|
||
# Indexing Properties | ||
conductor.indexing.enabled=true | ||
conductor.elasticsearch.url=http://es:9200 | ||
conductor.elasticsearch.indexName=conductor | ||
conductor.elasticsearch.version=7 | ||
conductor.elasticsearch.clusterHealthColor=yellow | ||
conductor.indexing.type=postgres | ||
# Required to disable connecting to elasticsearch. | ||
conductor.elasticsearch.version=0 | ||
|
||
# Additional modules for metrics collection exposed to Prometheus (optional) | ||
conductor.metrics-prometheus.enabled=true | ||
management.endpoints.web.exposure.include=prometheus | ||
|
||
# Load sample kitchen-sink workflow | ||
loadSample=true | ||
loadSample=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters