abc0123xyz
V2EX  ›  Docker

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

  •  
  •   abc0123xyz · Dec 1, 2022 · 2298 views
    This topic created in 1434 days ago, the information mentioned may be changed or developed.

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

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

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

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


    我把 command 参数的横线去掉好像可以启动
    command:
    ["--server", "/app/config.toml"]
    yandong1228
    yandong1228
    Dec 1, 2022
    3
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5300 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 02:08 · PVG 10:08 · LAX 18:08 · JFK 21:08
    ♥ Do have faith in what you're doing.