- Install Docker
- Install
docker-sync
by runninggem install --user-install docker-sync
- Add
export PATH=$PATH:$HOME/.gem/ruby/2.3.0/bin
line to your local.bashrc
or.zshrc
configuration cp .env.sample .env
and fill in values- Run
docker-sync-stack start
- Visit http://localhost:3000/
Alternatively, you can launch development environment without docker-sync
by running
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
or
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up
Dev will run tsc in watch mode and
Prod will start 2 additional node services load-balanced via nginx
Node is running on port 3000
. You can connect to the container by running the following command:
docker exec -it node0 bash
Default PostgreSQL port is exposed to localhost, so you can connect to it using your favorite database management tool.
Host: localhost
Port: 5432
Username: postgres
Password: '' (empty)
Database: myproject
Schema: public