Old tiles.ttss.pl backed using MapProxy
Jacek Kowalski
2020-06-03 d1e1f5e507ac2c01c2633fb026f98f2bdf30271f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
 
. common.sh
 
cat > /etc/systemd/system/tiles-postgis.service <<EOF
[Unit]
Description=Docker container tiles-postgis
After=docker.service
Requires=docker.service
 
[Service]
ExecStart=/usr/bin/docker start -a "${DOCKER_PREFIX}-postgis"
ExecStop=/usr/bin/docker stop -t 20 "${DOCKER_PREFIX}-postgis"
TimeoutStopSec=30s
Restart=on-failure
 
[Install]
WantedBy=multi-user.target
EOF
 
cat > /etc/systemd/system/tiles-mapproxy.service <<EOF
[Unit]
Description=Docker container tiles-mapproxy
After=docker.service tiles-postgis.service
BindsTo=docker.service tiles-postgis.service
 
[Service]
ExecStart=/usr/bin/docker start -a "${DOCKER_PREFIX}-mapproxy"
ExecStop=/usr/bin/docker stop -t 20 "${DOCKER_PREFIX}-mapproxy"
TimeoutStopSec=30s
Restart=on-failure
 
[Install]
WantedBy=multi-user.target
EOF
 
systemctl daemon-reload
systemctl enable tiles-mapproxy