Created
January 13, 2021 21:56
-
-
Save jesuiswk/dab2e2859bcd640df1fab46187a16b81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /home/jesuiswk/.config/tmuxinator/tm.yml | |
name: tm | |
root: ~/Documents/ThirtyMadison/ | |
# Optional tmux socket | |
# socket_name: foo | |
# Note that the pre and post options have been deprecated and will be replaced by | |
# project hooks. | |
# Project hooks | |
# Runs on project start, always | |
# on_project_start: command | |
# Run on project start, the first time | |
# on_project_first_start: command | |
# Run on project start, after the first time | |
# on_project_restart: command | |
# Run on project exit ( detaching from tmux session ) | |
# on_project_exit: command | |
# Run on project stop | |
# on_project_stop: command | |
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. | |
# pre_window: rbenv shell 2.0.0-p247 | |
# Pass command line options to tmux. Useful for specifying a different tmux.conf. | |
# tmux_options: -f ~/.tmux.mac.conf | |
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. | |
# tmux_command: byobu | |
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. | |
# startup_window: editor | |
# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used. | |
# startup_pane: 1 | |
# Controls whether the tmux session should be attached to automatically. Defaults to true. | |
# attach: false | |
windows: | |
- editor: | |
root: ~/Documents/ThirtyMadison/doctors_portal | |
layout: main-vertical | |
# Synchronize all panes of this window, can be enabled before or after the pane commands run. | |
# 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after' | |
# synchronize: after | |
panes: | |
- vim | |
- | |
- server: | |
layout: even-horizontal | |
panes: | |
- platform: | |
- cd platform | |
- docker-compose up -d db | |
- yarn start | |
- oauth: | |
- cd tm_oauth_provider | |
- rails s | |
- api: | |
- cd doctor_api | |
- docker-compose up -d db redis | |
- rails s | |
- portal: | |
- cd doctors_portal | |
- yarn start | |
- workers: | |
root: ~/Documents/ThirtyMadison/platform | |
layout: main-vertical | |
panes: | |
- QUEUE=kmg_syncs bundle exec rake resque:work | |
- QUEUE=kmg_syncs bundle exec rake resque:scheduler |
I think you can also feed docker-compose multiple yaml files. Though I don't know whether it figures out the networking automatically for you.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jesuiswk this is really cool! you can probably run a
docker-compose up -d
without specifying specific services for either platform or doctor_api!