[GH-ISSUE #150] Q: Example docker-compose.yml? #148

Closed
opened 2026-02-27 15:55:18 +03:00 by kerem · 2 comments
Owner

Originally created by @noviceiii on GitHub (Apr 23, 2018).
Original GitHub issue: https://github.com/RD17/ambar/issues/150

Dear all

Can you give me a hand with the docker-compose.yml?
Sorry for that probably basic question but i struggle a bit to get docker/ ambar running again.

[1]: What other options do exist for condition?
[2]: What other parameters are allowed for restart?
[3]: What else can be given here?
[4]: Is the crawl path the path to the local storage folder where files are located?
[5]: What is the syntax to use with spaces? Double quotes like "my folder"?
[6]: What is the meaning of volumes: source or destination folders?

(I have no need to move the source files as it is all on one single machine, and I'd keep the original files)

  crawler0:
    depends_on:
      serviceapi:
        condition: service_healthy [1]
    image: ambar/ambar-local-crawler
    restart: always [2]
    networks:
      - internal_network [3]
    environment:
      - apiUrl=http://serviceapi:8081
      - crawlPath=/opt/files/folder [4]
      - name=My Folder [5]
    volumes:
      -  /opt/files/folder [6]

Kind regards
n3

Originally created by @noviceiii on GitHub (Apr 23, 2018). Original GitHub issue: https://github.com/RD17/ambar/issues/150 Dear all Can you give me a hand with the docker-compose.yml? Sorry for that probably basic question but i struggle a bit to get docker/ ambar running again. [1]: What other options do exist for condition? [2]: What other parameters are allowed for restart? [3]: What else can be given here? [4]: Is the crawl path the path to the local storage folder where files are located? [5]: What is the syntax to use with spaces? Double quotes like "my folder"? [6]: What is the meaning of volumes: source or destination folders? (I have no need to move the source files as it is all on one single machine, and I'd keep the original files) ``` crawler0: depends_on: serviceapi: condition: service_healthy [1] image: ambar/ambar-local-crawler restart: always [2] networks: - internal_network [3] environment: - apiUrl=http://serviceapi:8081 - crawlPath=/opt/files/folder [4] - name=My Folder [5] volumes: - /opt/files/folder [6] ``` Kind regards n3
kerem closed this issue 2026-02-27 15:55:18 +03:00
Author
Owner

@sochix commented on GitHub (Apr 23, 2018):

Hi @noviceiii

  1. You shouldn't change it
  2. You shouldn't chenge it too
  3. Only internal network
  4. Nope, it's internal option, please do not change it
  5. I think spaces is ok
  6. Before colon goes local path to folder, after internal path of crawler. You should specify local path to folder which crawler will watch.

Btw, you need to setup only params that described in Installation.md

Hope it helps!

<!-- gh-comment-id:383604666 --> @sochix commented on GitHub (Apr 23, 2018): Hi @noviceiii 1. You shouldn't change it 2. You shouldn't chenge it too 3. Only internal network 4. Nope, it's internal option, please do not change it 5. I think spaces is ok 6. Before colon goes local path to folder, after internal path of crawler. You should specify local path to folder which crawler will watch. Btw, you need to setup only params that described in Installation.md Hope it helps!
Author
Owner

@noviceiii commented on GitHub (Apr 23, 2018):

Hi @sochix

Thank you for the clear answer. It did help me to determine the error: it wasn't the config. (And sometimes it is good to know, what isn't the problem).

I didn't remove the previous installation. This obviously caused issues with the indexer. However, I have deleted all previous ambar working directories and files (es, db, rabbit, ..) and re-installed it.

All fine.
Thank you!

n3

<!-- gh-comment-id:383653634 --> @noviceiii commented on GitHub (Apr 23, 2018): Hi @sochix Thank you for the clear answer. It did help me to determine the error: it wasn't the config. (And sometimes it is good to know, what isn't the problem). I didn't remove the previous installation. This obviously caused issues with the indexer. However, I have deleted all previous ambar working directories and files (es, db, rabbit, ..) and re-installed it. All fine. Thank you! n3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ambar#148
No description provided.