V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
abc0123xyz
V2EX  ›  Docker

小白求教,这个 docker compose 怎么写

  •  
  •   abc0123xyz · 2022-12-01 14:58:14 +08:00 · 1086 次点击
    这是一个创建于 484 天前的主题,其中的信息可能已经有所发展或是发生改变。

    想只用 docker compose 管理 rathole 配置
    但是折腾了半天一直无法启动,有没有大佬帮忙弄个模板出来。

    https://hub.docker.com/r/rapiz1/rathole
    https://github.com/rapiz1/rathole

    3 条回复    2022-12-01 15:45:50 +08:00
    elshir
        1
    elshir  
       2022-12-01 15:13:00 +08:00
    services:
    rustrock:
    image: rapiz1/rathole:v0.3.9
    volumes:
    - 本地 config.toml 路径:/app/config.toml
    command:
    - ["--server", "/app/config.toml"]
    abc0123xyz
        2
    abc0123xyz  
    OP
       2022-12-01 15:21:41 +08:00
    @elshir #1
    感谢大哥

    但是会提示
    .command.0 must be a string


    我把 command 参数的横线去掉好像可以启动
    command:
    ["--server", "/app/config.toml"]
    yandong1228
        3
    yandong1228  
       2022-12-01 15:45:50 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5045 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 09:36 · PVG 17:36 · LAX 02:36 · JFK 05:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.