Skip to content

Commit

Permalink
Split away quota from main docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Dec 27, 2023
1 parent 8aafb07 commit 0929e58
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
14 changes: 14 additions & 0 deletions docker-compose-quota.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 0 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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

0 comments on commit 0929e58

Please sign in to comment.