I didn't see a docker-compose file so I created one

I hope I have put this in the right place. This is basically the suggested docker run command but in a docker-compose file with local storage instead of a persistent volume:
version: ‘3’
services:
yacy:
image: yacy/yacy_search_server
restart: always
ports:
- “8090:8090”
- “8443:8443”
volumes:
- /whereyouwantyacytostorestuff/:/opt/yacy_search_server/DATA
logging:
driver: “json-file”
options:
max-size: “200m”
max-file: “2”

volumes:
yacy:
driver: local

Thank you @zombiehoffa I may probably add your file to the release soon

Hello,
I know this is an old thread, but I found it following a web search for a docker-compose.yml file for YaCy which sadly still doesn’t seem to be included with the YaCy codebase.

The original OPs result is not formatted in a way that podman-compose nor docker-compose expect, for a YAML file.

Please see below for a properly formatted version that I am using in my personal YaCy deployment, although I am currently having scraping issues.

version: "3"

services:
  yacy:
    image: yacy/yacy_search_server
    container_name: yacy
    user: 1000:1000
    restart: always
    ports:
      - "8090:8090"
      - "443:8443"
    volumes:
      - /your/folder/name:/opt/yacy_search_server/DATA
    logging:
      driver: "json-file"

    options:
      max-size: "200m"
      max-file: "2"

volumes:
  yacy:
    driver: local
1 Like