Created
October 6, 2019 16:04
-
-
Save davidecavestro/4800ec8ff688b7f7c56c536b472b68e3 to your computer and use it in GitHub Desktop.
docker-compose to play with Concord workflow orchestration engine from walmartlabs (https://concord.walmartlabs.com/docs/getting-started/quickstart.html)
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
server { | |
listen 8080; | |
server_name _; | |
root /opt/concord/console/dist; | |
access_log /opt/concord/logs/access.log main; | |
proxy_read_timeout 1800; | |
client_max_body_size 32M; | |
location ~ ^/(api/|logs/|forms/|events/|swagger/|metrics|resources/) { | |
expires off; | |
proxy_pass http://server:8001; | |
proxy_redirect off; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
} | |
location /websocket { | |
proxy_pass http://server:8001/websocket; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "Upgrade"; | |
} | |
location ~* \.(?:manifest|appcache|html?|xml|json)$ { | |
expires -1; | |
} | |
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { | |
expires 30d; | |
add_header Pragma public; | |
add_header Cache-Control "public"; | |
} | |
location = /cfg.js { | |
expires -1; | |
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"; | |
} | |
} |
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
version: '3.7' | |
services: | |
db: | |
image: library/postgres:12.0-alpine | |
environment: | |
POSTGRES_PASSWORD: 'q1' | |
volumes: | |
- db_data:/var/lib/postgresql/data | |
server: | |
image: walmartlabs/concord-server | |
volumes: | |
- ./server.conf:/opt/concord/conf/server.conf:ro | |
environment: | |
CONCORD_CFG_FILE: '/opt/concord/conf/server.conf' | |
depends_on: | |
- db | |
agent: | |
image: walmartlabs/concord-agent | |
environment: | |
SERVER_API_BASE_URL: 'http://server:8001' | |
SERVER_WEBSOCKET_URL: 'ws://server:8001/websocket' | |
depends_on: | |
- server | |
console: | |
image: walmartlabs/concord-console | |
volumes: | |
- ./console.conf:/opt/concord/console/nginx/app.conf:ro | |
ports: | |
- "9010:8080" | |
depends_on: | |
- server | |
- ldap | |
ldap: | |
image: osixia/openldap | |
volumes: | |
- .:/container/service/slapd/assets/config/bootstrap/ldif/custom:ro | |
command: ['--copy-service'] | |
phpldapadmin: | |
image: osixia/phpldapadmin:latest | |
environment: | |
PHPLDAPADMIN_LDAP_HOSTS: "ldap" | |
PHPLDAPADMIN_HTTPS: "false" | |
ports: | |
- "9011:80" | |
depends_on: | |
- ldap | |
# gitea: | |
# image: gitea/gitea:latest | |
# environment: | |
# - USER_UID=1000 | |
# - USER_GID=1000 | |
# volumes: | |
# - gitea_data:/data | |
# ports: | |
# - "9012:3000" | |
# - "9022:22" | |
volumes: | |
db_data: | |
# gitea_data: |
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
dn: cn=myuser,dc=example,dc=org | |
cn: myuser | |
objectClass: top | |
objectClass: organizationalRole | |
objectClass: simpleSecurityObject | |
objectClass: mailAccount | |
userPassword: {SSHA}FZxXb9WXU8yO5VgJYCU8Z+pbVzCJisNX | |
mail: [email protected] |
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
concord-server { | |
db { | |
url="jdbc:postgresql://db:5432/postgres" | |
appPassword = "q1" | |
inventoryPassword = "q1" | |
} | |
secretStore { | |
serverPassword = "cTE=" | |
secretStoreSalt = "cTE=" | |
projectSecretSalt = "cTE=" | |
} | |
# AD/LDAP authentication | |
ldap { | |
url = "ldap://ldap:389" | |
searchBase = "dc=example,dc=org" | |
principalSearchFilter = "(cn={0})" | |
userSearchFilter = "(cn=*{0}*)" | |
usernameProperty = "cn" | |
systemUsername = "cn=admin,dc=example,dc=org" | |
systemPassword = "admin" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment