O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up the dockerized IGWEB service

Setting up the systemd service for the dockerized igweb is pretty straightforward. Here are the contents of the igweb-docker.service file, which should be placed in the production system's /etc/systemd/system directory:

[Unit]Description=Dockerized IGWEBAfter=docker.serviceRequires=docker.service[Service]Type=oneshotRemainAfterExit=yesWorkingDirectory=/opt/igb/igwebExecStart=/usr/bin/docker-compose -f /opt/igb/igweb/docker-compose.yml up -dExecStop=/usr/bin/docker-compose -f /opt/igb/igweb/docker-compose.yml down[Install]WantedBy=multi-user.target

In the [Unit] section, we have set the After directive with the value docker.service. This indicates that the docker unit must be started before the igweb-docker ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required