https://github.com/kkoralsky/tmate-docker-compose
self-hosted shell sharing based on tmux https://tmate.io
https://github.com/kkoralsky/tmate-docker-compose
Last synced: 4 months ago
JSON representation
self-hosted shell sharing based on tmux https://tmate.io
- Host: GitHub
- URL: https://github.com/kkoralsky/tmate-docker-compose
- Owner: kkoralsky
- Created: 2020-03-08T22:12:07.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-17T15:18:24.000Z (over 1 year ago)
- Last Synced: 2024-08-01T13:38:20.529Z (7 months ago)
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 21
- Watchers: 3
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# setup
1. pull images
```
docker-compose pull
```1. 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 capability1. generate keys
```
mkdir -p keys && ./create_keys.sh
```1. 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`1. 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`
```1. launch services
```
docker-compose up -d
docker-compose logs -f
```