version: '3.8' services: app: image: schollz/croc:master ports: - 9009-9013:9009-9013 environment: - CROC_PASS_FILE=/run/secrets/croc_pass secrets: - croc_pass configs: - source: croc_entrypoint target: /abra-entrypoint.sh mode: 0555 entrypoint: /abra-entrypoint.sh secrets: croc_pass: name: ${STACK_NAME}_croc_pass_${SECRET_CROC_PASS_VERSION} external: true configs: croc_entrypoint: name: ${STACK_NAME}_croc_entrypoint_${CROC_ENTRYPOINT_VERSION} file: entrypoint.sh