-
pull images
docker-compose pull
-
generate keys
$ mkdir -p keys && ./create_keys.sh
-
edit example configuration
cp ./tmate.conf{.example,}
preserve characterset and lengths of the secret key (except INTERNAL_API_AUTH_TOKEN)
-
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`
-
launch services
$ docker-compose up -d $ docker-compose logs -f
-
configure tmate on the client: in your
~/.tmux.conf
add:set -g tmate-server-host <external fqdn> set -g tmate-server-port 22 set -g tmate-server-rsa-fingerprint "<finerprint of generated RSA key>" set -g tmate-server-ed25519-fingerprint "<finerprint of generated ED25519 key>"
you can get fingerprints like:
$ ssh-keygen -l -E sha256 -f keys/ssh_host_ed25519_key.pub
symlink
~/.tmate.conf
to~/.tmux.conf
forked from kkoralsky/tmate-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
self-hosted shell sharing based on tmux https://tmate.io
gyl30/tmate-docker-compose
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Releases
No releases published
Packages 0
No packages published
Languages
- Shell 100.0%