--- version: "3.8" services: app: image: thecoopcloud/backup-bot-two:latest build: . volumes: - "/var/run/docker.sock:/var/run/docker.sock" - "backups:/backups" environment: - CRON_SCHEDULE - RESTIC_REPO - RESTIC_PASSWORD_FILE=/run/secrets/restic_password - BACKUP_DEST=/backups - RESTIC_HOST - SERVER_NAME secrets: - restic_password deploy: labels: - coop-cloud.${STACK_NAME}.app.version= volumes: backups: secrets: restic_password: external: true name: ${STACK_NAME}_restic_password_${SECRET_RESTIC_PASSWORD_VERSION}