Skip to content

kkoralsky/tmate-docker-compose

Repository files navigation

setup

  1. pull images

    docker-compose pull
    
  2. edit example configuration

    cp ./tmate.env{.example,}
    cp ./email.env{.example,}
    

    preserve characterset and lengths of the secret key (except INTERNAL_API_AUTH_TOKEN); email configuration is mandatory only if you want to use named session capability

  3. generate keys

    mkdir -p keys && ./create_keys.sh
    
  4. configure tmate on the client:

    • either in ~/.tmate.conf (as output of the script sugested),
    • or in ~/.tmux.conf and then symlink ~/.tmate.conf to ~/.tmux.conf
  5. run migrations

    docker-compose up -d postgres
    docker-compose run master ./bin/tmate console
    
    # run comand twice
    Mix.Task.rerun("ecto.migrate", ["-r", Tmate.Repo, "--migrations-path", "./lib/tmate-0.1.1/priv/repo/migrations"])
    Mix.Task.rerun("ecto.migrate", ["-r", Tmate.Repo, "--migrations-path", "./lib/tmate-0.1.1/priv/repo/migrations"])
    
    # to exit type Ctrl+c followed by `a`
    
  6. launch services

    docker-compose up -d
    docker-compose logs -f
    

About

self-hosted shell sharing based on tmux https://tmate.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages