diff --git a/.env.template b/.env.template index c24a963..fdc5289 100644 --- a/.env.template +++ b/.env.template @@ -2,6 +2,7 @@ # Add as required # - docker-compose-osrm.yml # - docker-compose-otp.yml +# Add docker-compose-quota.yml to enable quota COMPOSE_FILE=docker-compose.yml # Add configuration values here, as shown below. diff --git a/docker-compose-quota.yml b/docker-compose-quota.yml new file mode 100644 index 0000000..9f67c9f --- /dev/null +++ b/docker-compose-quota.yml @@ -0,0 +1,14 @@ +version: '3.3' +services: + api: + links: + - redis-count + environment: + REDIS_COUNT_HOST: redis-count + + redis-count: + image: redis:${REDIS_VERSION:-7-alpine} + volumes: + - ./docker/redis-count:/data + command: redis-server --appendonly yes + restart: unless-stopped diff --git a/docker-compose.yml b/docker-compose.yml index 3724220..daf783b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,10 +13,8 @@ services: - ./docker/poly:/srv/app/poly links: - redis-cache - - redis-count environment: REDIS_HOST: redis-cache - REDIS_COUNT_HOST: redis-count APP_ENV: production # Switch to "development" for more traces HERE_APP_ID: ${HERE_APP_ID} HERE_APP_CODE: ${HERE_APP_CODE} @@ -28,10 +26,3 @@ services: image: redis:${REDIS_VERSION:-7-alpine} command: redis-server --save "" restart: unless-stopped - - redis-count: - image: redis:${REDIS_VERSION:-7-alpine} - volumes: - - ./docker/redis-count:/data - command: redis-server --appendonly yes - restart: unless-stopped