V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
abc0123xyz
V2EX  ›  Docker

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

  •  
  •   abc0123xyz · Dec 1, 2022 · 1842 views
    This topic created in 1247 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
        1
    kiecooboi  
       Dec 1, 2022
    services:
    rustrock:
    image: rapiz1/rathole:v0.3.9
    volumes:
    - 本地 config.toml 路径:/app/config.toml
    command:
    - ["--server", "/app/config.toml"]
    abc0123xyz
        2
    abc0123xyz  
    OP
       Dec 1, 2022
    @elshir #1
    感谢大哥

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


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