Running on Docker

Dmitry Ustalov edited this page May 4, 2016 · 16 revisions

Official Docker Image

docker run -v /path/to/log:/var/log/mtsar \
  -e POSTGRES_PORT_5432_TCP_ADDR=192.168.1.2 \
  -p 8080:8080 -p 8081:8081 --restart=always --name=mtsar \
  -d mtsar/mtsar

Custom Docker Image

  • git clone https://github.com/mtsar/mtsar.git mtsar && cd mtsar
  • docker build -t mtsar .
docker run -v /path/to/log:/var/log/mtsar \
  -e POSTGRES_PORT_5432_TCP_ADDR=192.168.1.2 \
  -p 8080:8080 -p 8081:8081 --restart=always --name=mtsar \
  -d mtsar

Docker Compose

  1. git clone https://github.com/mtsar/mtsar.git mtsar && cd mtsar
  2. cp docker-compose.yml.example docker-compose.yml
  3. docker-compose up -d postgres and ensure that the PostgreSQL has been started
  4. docker-compose run --rm app /mtsar/mtsar.sh db migrate for the first time
  5. docker-compose up --no-recreate -d app
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.