Skip to content

Instantly share code, notes, and snippets.

Problem

Consider the following template:

version: '3.3'

services:
  swarm-sync:
 image: nginx:{{ nginx_tag }}

Snippet from docker-compose:

secrets:
  - source: "docker_secrets_expand"
    target: "/docker_secrets_expand.sh"
    mode: "0555"
  - db_password
environment:
 DB_PASSWORD:DOCKER-SECRET->db_password
//Include strophe, strophe.mam, strohpe.rsm
var jabber_service = "...";
var my_test_jid = "...";
var password = "...";
var my_test_target_jid = "...";
var connection = new Strophe.Connection( jabber_service );
this.connection.connect( my_test_jid, password, function (status) {