Skip to content

Instantly share code, notes, and snippets.

@mapcentia
Last active April 26, 2017 10:42
Show Gist options
  • Save mapcentia/b321627726add10164c25c39da638300 to your computer and use it in GitHub Desktop.
Save mapcentia/b321627726add10164c25c39da638300 to your computer and use it in GitHub Desktop.
Description=Postgis
Requires=docker.service
After=docker.service
[Service]
ExecStart=/usr/bin/docker start -a postgis
ExecStop=/usr/bin/docker stop postgis
Restart=always
RestartSec=3
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=postgis
[Install]
WantedBy=multi-user.target
[Unit]
Description=Elasticsearch
Requires=docker.service
After=docker.service
[Service]
ExecStart=/usr/bin/docker start -a elasticsearch
ExecStop=/usr/bin/docker stop elasticsearch
Restart=always
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=elasticsearch
[Install]
WantedBy=multi-user.target
**
[Unit]
Description=GC2Core
Requires=docker.service
After=docker.service postgis.service elasticsearch.service
Before=mapcache.service
[Service]
ExecStart=/usr/bin/docker start -a gc2core
ExecStop=/usr/bin/docker stop gc2core
Restart=always
RestartSec=3
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=gc2core
[Install]
WantedBy=multi-user.target
**
[Unit]
Description=Mapcache
Requires=docker.service gc2core.service
[Service]
ExecStart=/usr/bin/docker start -a mapcache
ExecStop=/usr/bin/docker stop mapcache
Restart=always
RestartSec=3
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=mapcache
[Install]
WantedBy=gc2core.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment