networks: mesh_net: services: alula-swarm-test-helper: platform: linux/amd64 depends_on: ipdapi: condition: service_healthy environment: IPDAPI_BSD_CLIENT_ID: 78989370-1e24-41ac-b86d-bb07feee01f9 IPDAPI_BSD_CLIENT_SECRET: bsdpass IPDAPI_DFS_CLIENT_ID: 10211607-dd43-464b-8cfb-0d8b78beee1e IPDAPI_DFS_CLIENT_SECRET: dfspass IPDAPI_HFA_CLIENT_ID: c35a00cb-624d-41cc-9528-aac367ecf690 IPDAPI_HFA_CLIENT_SECRET: hfapass IPDAPI_MAP_CLIENT_ID: 8b3fe43d-b0a3-45f2-b245-ab1986a597fe IPDAPI_MAP_CLIENT_SECRET: mappass IPDAPI_MNM_CLIENT_ID: 70ae63a8-8791-4fbc-b7ef-46824d71a4f5 IPDAPI_MNM_CLIENT_SECRET: mnmpass IPDAPI_MPA_CLIENT_ID: 0a98a1dd-1c42-4891-9bb4-d4d8f705b64e IPDAPI_MPA_CLIENT_SECRET: mpapass IPDAPI_SCD_CLIENT_ID: 6a2e2df1-ba64-11ec-9605-b516fa27ea87 IPDAPI_SCD_CLIENT_SECRET: scdpass MARIADB_ADDRESS: mariadb MARIADB_PASS: "" MARIADB_USER: root MONGODB_ADDRESS: mongodb MONGODB_PASS: ipdpass MONGODB_USER: ipd RMQ_EPHEMERAL_ADDRESS: rmq-ephemeral RMQ_PERSISTENT_ADDRESS: rmq-persistent RP_ADMIN_AUTH_ID: 12 RP_ADMIN_AUTH_KEY: xxxxx RP_AUTH_ID: 1234 RP_AUTH_KEY: xxxxx RP_BASE_URL: https://config.alula.net/api RP_PARTNER_ID: 12345 STACKNAME: test healthcheck: interval: 15s retries: 5 start_period: 30s test: | test -f healthy.txt || curl --request POST --url http://localhost/populate/default/clients && touch healthy.txt timeout: 15s image: 613707345027.dkr.ecr.us-east-1.amazonaws.com/alula/alula-swarm-test-helper:master networks: mesh_net: restart: on-failure ports: - "8088:80" ipdapi: platform: linux/amd64 depends_on: mariadb: condition: service_healthy mongodb: condition: service_healthy rmq-ephemeral: condition: service_healthy rmq-persistent: condition: service_healthy entrypoint: /usr/src/app/startup.sh environment: IPDAPI_AUTO_CREATE_DATABASES: true IPDAPI_FEATURES_CONNECT_PLUS_USERPIN: true IPDAPI_RL_AUTH_MAX_HITS: ${IPDAPI_RL_AUTH_MAX_HITS:-1000} IPDAPI_RL_DEFAULT_MAX_HITS: ${IPDAPI_RL_DEFAULT_MAX_HITS:-10000} IPDAPI_RL_LOGIN_MAX_HITS: ${IPDAPI_RL_LOGIN_MAX_HITS:-1000} IPDAPI_TRUST_PROXY: loopback IPDAPI_WS_WORK_EVENTS_ENABLED: true IPDAPI_WS_WORK_VIGILANCE_BATCH_WINDOW_MSEC: ${IPDAPI_WS_WORK_VIGILANCE_BATCH_WINDOW_MSEC:-5000} IPDAPI_WS_WORK_VIGILANCE_CANCEL_BATCH_WINDOW_MSEC: ${IPDAPI_WS_WORK_VIGILANCE_CANCEL_BATCH_WINDOW_MSEC:-10000} IPDAPI_WS_WORK_VIGILANCE_CANCEL_TERMINATE_DELAY_MSEC: ${IPDAPI_WS_WORK_VIGILANCE_CANCEL_TERMINATE_DELAY_MSEC:-500} IPDAPI_WS_WORK_VIGILANCE_TERMINATE_DELAY_MSEC: ${IPDAPI_WS_WORK_VIGILANCE_TERMINATE_DELAY_MSEC:-500} LOG_LEVEL: warn MARIADB_ADDRESS: mariadb MARIADB_PASS: "" MARIADB_USER: root MNC_ENABLE: false MONGODB_ADDRESS: mongodb MONGODB_PASS: ipdpass MONGODB_USER: ipd RMQ_EPHEMERAL_ADDRESS: amqp://rmq-ephemeral RMQ_PERSISTENT_ADDRESS: amqp://rmq-persistent REDIS_ADDRESS: redis-ipdapi healthcheck: interval: 5s retries: 10 start_period: 30s test: apk add curl && curl -s http://localhost/public/v1/healthcheck/default || exit -1 timeout: 10s image: 613707345027.dkr.ecr.us-east-1.amazonaws.com/api/ipdapi:staging networks: mesh_net: profiles: - app - deps volumes: - source: ./bin/ipdapi-startup.sh target: /usr/src/app/startup.sh type: bind ports: - "8080:80" mariadb: hostname: mariadb image: mariadb:10.3 command: - --wait_timeout=28800 - --max_connections=2048 environment: MYSQL_ALLOW_EMPTY_PASSWORD: 'true' volumes: - mariadb_data:/var/lib/mysql - ./utils/mariadb/init:/docker-entrypoint-initdb.d - ./utils/mariadb/conf:/etc/mysql/conf.d healthcheck: test: mysql -D mysql --silent --execute "SELECT 1;" interval: 30s timeout: 10s retries: 5 networks: mesh_net: mongodb: command: --replSet api0 --bind_ip_all environment: MONGO_INITDB_ROOT_PASSWORD: ipdpass MONGO_INITDB_ROOT_USERNAME: ipd-root healthcheck: interval: 2s start_period: 30s test: | test -f healthy.txt || test $$(echo 'rs.initiate({"_id" : "api0", "members" : [{"_id" : 0,"host" : "mongodb:27017"}]}).ok || rs.status().ok' | mongo -u ipd-root -p ipdpass --quiet) -eq 1 && echo > healthy.txt image: mongo:4.4.1-bionic networks: mesh_net: ports: - "17017:27017/tcp" volumes: - ./container/mongodb_data:/data/db/ - ./utils/mongodb/init/:/docker-entrypoint-initdb.d/ rmq-ephemeral: healthcheck: interval: 30s retries: 5 test: rabbitmq-diagnostics -q ping timeout: 15s image: rabbitmq:management networks: mesh_net: rmq-persistent: healthcheck: interval: 30s retries: 5 test: rabbitmq-diagnostics -q ping timeout: 15s image: rabbitmq:management networks: mesh_net: redis-ipdapi: container_name: redis-ipdapi image: redis:6.0.9-alpine healthcheck: test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping'] interval: 1s timeout: 5s retries: 30 networks: mesh_net: ports: - 6379:6379 restart: always version: "3.9" volumes: dcp-mongo: dcp-node-modules: dcp-shell-node-modules: dcw-node-modules: hfa-sess-cache: kafka1: kafka2: kafka3: mariadb_data: mongodb_data: zoodata: zoolog: