Skip to content

Commit

Permalink
Add Docker Compose (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjallday authored and zdmytriv committed Jul 23, 2021
1 parent c9e32ea commit 44ab3f5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@ services:
expose:
- 6379
ports:
- "6379:6379"
networks:
- data
volumes:
- redis-data:/data

ratelimit:
build:
context: ./
dockerfile: Dockerfile
ports:
- 8080:8080
depends_on:
- redis
networks:
- data
links:
- redis
volumes:
- ./examples:/data/
- 6379:6379
networks:
- ratelimit-network
Expand Down Expand Up @@ -60,6 +80,13 @@ services:
- REDIS_URL=redis:6379
- RUNTIME_ROOT=/data
- RUNTIME_SUBDIRECTORY=ratelimit

networks:
data:

volumes:
redis-data:
ratelimit-data:
- MEMCACHE_HOST_PORT=memcached:11211

networks:
Expand Down

0 comments on commit 44ab3f5

Please sign in to comment.