[GH-ISSUE #129] docker-compose example #58

Closed
opened 2026-04-08 16:50:07 +03:00 by zhus · 1 comment
Owner

Originally created by @jjjuk on GitHub (Aug 26, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/129

Problem

How should I configure dufs in docker-compose file? I have this config:

  upload:
    image: sigoden/dufs:latest
    restart: always
    volumes:
      - type: volume
        source: files
        target: /data
    ports:
      - 5000:5000
    command: dufs -A -a /@admin:pass@* && dufs data
    networks:
      internal:
        aliases:
          - upload

But it starts up with an error:

Log

azapi-upload-1    | error: Path `dufs` doesn't exist
azapi-upload-1    | error: Path `dufs` doesn't exist
azapi-upload-1    | error: Path `dufs` doesn't exist
azapi-upload-1    | error: Path `dufs` doesn't exist
azapi-upload-1    | error: Path `dufs` doesn't exist
azapi-upload-1    | error: Path `dufs` doesn't exist
azapi-upload-1    | error: Path `dufs` doesn't exist
azapi-upload-1    | error: Path `dufs` doesn't exist
azapi-upload-1    | error: Path `dufs` doesn't exist
azapi-upload-1    | error: Path `dufs` doesn't exist
azapi-upload-1    | error: Path `dufs` doesn't exist
azapi-upload-1    | error: Path `dufs` doesn't exist

Also, it would be great if you add docker-compose usage example to Readme)

Thank you!

Originally created by @jjjuk on GitHub (Aug 26, 2022). Original GitHub issue: https://github.com/sigoden/dufs/issues/129 **Problem** How should I configure dufs in docker-compose file? I have this config: ```yaml upload: image: sigoden/dufs:latest restart: always volumes: - type: volume source: files target: /data ports: - 5000:5000 command: dufs -A -a /@admin:pass@* && dufs data networks: internal: aliases: - upload ``` But it starts up with an error: **Log** ```log azapi-upload-1 | error: Path `dufs` doesn't exist azapi-upload-1 | error: Path `dufs` doesn't exist azapi-upload-1 | error: Path `dufs` doesn't exist azapi-upload-1 | error: Path `dufs` doesn't exist azapi-upload-1 | error: Path `dufs` doesn't exist azapi-upload-1 | error: Path `dufs` doesn't exist azapi-upload-1 | error: Path `dufs` doesn't exist azapi-upload-1 | error: Path `dufs` doesn't exist azapi-upload-1 | error: Path `dufs` doesn't exist azapi-upload-1 | error: Path `dufs` doesn't exist azapi-upload-1 | error: Path `dufs` doesn't exist azapi-upload-1 | error: Path `dufs` doesn't exist ``` Also, it would be great if you add docker-compose usage example to Readme) Thank you!
zhus closed this issue 2026-04-08 16:50:07 +03:00
Author
Owner

@sigoden commented on GitHub (Aug 27, 2022):

This docker image behaves like a dufs binary.

dufs -A -a '/@admin:pass@*' in docker-compose will be

  dufs:
    image: sigoden/dufs
    ports:
    - 5000:5000
    volumes:
    - .:/data
    command: /data -A -a '/@admin:pass@*'

Just put dufs args to docker-compose command

<!-- gh-comment-id:1229046483 --> @sigoden commented on GitHub (Aug 27, 2022): This docker image behaves like a dufs binary. `dufs -A -a '/@admin:pass@*'` in docker-compose will be ``` dufs: image: sigoden/dufs ports: - 5000:5000 volumes: - .:/data command: /data -A -a '/@admin:pass@*' ``` Just put dufs args to docker-compose command
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#58