diff --git a/docker-compose.yml b/docker-compose.yml index dd3ad77d..350a8ebe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,12 +27,12 @@ services: data: build: ./data volumes: - - /var/lib/mysql - - /var/lib/postgres - - /var/lib/mariadb - - /var/lib/redis - - /var/lib/memcached - - /var/lib/neo4j/data + - /var/lib/mysql:/var/lib/mysql + - /var/lib/postgres:/var/lib/postgres + - /var/lib/mariadb:/var/lib/mariadb + - /var/lib/memcached:/var/lib/memcached + - /var/lib/neo4j:/var/lib/neo4j/data + - /var/lib/redis:/data ### Nginx Server Container ################################## @@ -77,7 +77,7 @@ services: ### MariaDB Container ####################################### - mariadb: + mariadb: build: ./mariadb volumes_from: - data diff --git a/redis/Dockerfile b/redis/Dockerfile index 35e4e97b..e8fedab3 100644 --- a/redis/Dockerfile +++ b/redis/Dockerfile @@ -4,8 +4,8 @@ MAINTAINER Mahmoud Zalt #COPY redis.conf /usr/local/etc/redis/redis.conf -VOLUME /var/lib/redis - -CMD [ "redis-server" ] +VOLUME /data EXPOSE 6379 + +CMD ["redis-server"]