Skip to content

Commit

Permalink
Add more comments for docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
simongoricar committed Aug 25, 2018
1 parent 4fe6875 commit eb3e944
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#######################################################
# Nano with docker-compose
#
# Please edit only if you know what you are doing.
# Please use spaces when editing.
# If you need any help, join our discord server at http://discord.nanobot.pw

Expand All @@ -25,23 +26,34 @@ services:
volumes:
- ./data:/data

# This makes sure redis-data and redis-cache are started first.
depends_on:
- redis-data
- redis-cache

#########################
# REDIS-DATA instance
# Contains all data, related to the user
#########################
redis-data:
container_name: "redis-data"
image: redis

# Mounts all database files into your data/ directory
volumes:
- ./data:/data
- ./data/redis.conf:/usr/local/etc/redis/redis.conf
command: "redis-server /usr/local/etc/redis/redis.conf"

#########################
# REDIS-CACHE instance
# As the name suggests, this db contains cached data such as tf2 items, jokes, etc...
#########################
redis-cache:
container_name: "redis-cache"
image: redis

# Mounts all database files into your data/ directory
volumes:
- ./data:/data
- ./data/redisCache.conf:/usr/local/etc/redis/redis.conf
Expand Down

0 comments on commit eb3e944

Please sign in to comment.