Skip to content

Move config to directory so we can properly use volumes #46

@airtonix

Description

@airtonix

I'd like to configure plugsy configuration to be stored in anamed volume, but you dictate that the config.json is in the root of the filesystem.

the syntax for declaring named volumes implies they are like folders :

🛑 bad

  volumes:
    - plugsy_service_config_volume/config.json:/config.json

💚 Better

  volumes:
    - plugsy_service_config_volume:/opt/plugsy/config/

👇🏻 My desired configuration

version: "3.3"

services:
  plugsy:
    restart: unless-stopped
    image: plugsy/core
    labels:
      traefik.http.routers.piehole-ui-router.service: plugsy-ui-service
      traefik.http.routers.plugsy-ui-router.rule: Host(`the.home.lan`)
      traefik.http.services.plugsy-ui-service.loadbalancer.server.port: 3000
    volumes:
      - plugsy_service_config_volume:/opt/plugsy/config/
      - /var/run/docker.sock:/var/run/docker.sock

volumes:
  plugsy_service_config_volume:

networks:
  default:
    external:
      name: traefik_proxy

I make editing these things easy by using codeserver to mount all the volumes that my services use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions