remove unless-stopped, add tag for images

pull/63/head
Etienne Trimaille 2018-06-21 22:00:51 -04:00
rodzic c46d55a821
commit b1a780088e
3 zmienionych plików z 7 dodań i 9 usunięć

Wyświetl plik

@ -22,11 +22,10 @@ services:
# - "35432:5432" # - "35432:5432"
healthcheck: healthcheck:
test: "exit 0" test: "exit 0"
restart: unless-stopped
imposm: imposm:
image: kartoza/docker-osm:imposm-latest image: kartoza/docker-osm:imposm-latest
#build: docker-imposm3 build: docker-imposm3
volumes: volumes:
# These are sharable to other containers # These are sharable to other containers
- ./settings:/home/settings - ./settings:/home/settings
@ -67,10 +66,9 @@ services:
- QGIS_STYLE=yes - QGIS_STYLE=yes
# Use clip in the database # Use clip in the database
- CLIP=no - CLIP=no
restart: unless-stopped
osmupdate: osmupdate:
#build: docker-osmupdate build: docker-osmupdate
image: kartoza/docker-osm:osmupdate-latest image: kartoza/docker-osm:osmupdate-latest
volumes: volumes:
# These are sharable to other containers # These are sharable to other containers
@ -78,6 +76,9 @@ services:
- import_done:/home/import_done - import_done:/home/import_done
- import_queue:/home/import_queue - import_queue:/home/import_queue
- cache:/home/cache - cache:/home/cache
depends_on:
db:
condition: service_healthy
environment: environment:
# These are all currently the defaults but listed here for your # These are all currently the defaults but listed here for your
# convenience if you want to change them # convenience if you want to change them
@ -98,4 +99,3 @@ services:
# seconds between 2 executions of the script # seconds between 2 executions of the script
# if 0, then no update will be done, only the first initial import from the PBF # if 0, then no update will be done, only the first initial import from the PBF
- TIME=120 - TIME=120
restart: unless-stopped

Wyświetl plik

@ -177,8 +177,7 @@ class Importer(object):
self.info('No *.shp detected in %s, so no clipping.' % self.default['SETTINGS']) self.info('No *.shp detected in %s, so no clipping.' % self.default['SETTINGS'])
# In docker-compose, we should wait for the DB is ready. # In docker-compose, we should wait for the DB is ready.
self.info('The checkup is OK. The container will continue soon, after the database, in 45 seconds.') self.info('The checkup is OK.')
sleep(45)
def create_timestamp(self): def create_timestamp(self):
"""Create the timestamp with the undefined value until the real one.""" """Create the timestamp with the undefined value until the real one."""

Wyświetl plik

@ -89,8 +89,7 @@ class Downloader(object):
else: else:
self.info('OSM PBF file: ' + self.osm_file) self.info('OSM PBF file: ' + self.osm_file)
self.info('The checkup is OK. The container will continue soon, after the database, in 45 seconds.') self.info('The checkup is OK.')
sleep(45)
def _check_latest_timestamp(self): def _check_latest_timestamp(self):
"""Fetch the latest timestamp.""" """Fetch the latest timestamp."""