update the volumes mounting of the DB containers

This commit is contained in:
Mahmoud Zalt 2016-06-03 01:50:11 +03:00
parent 99b54c5f7d
commit a8b4b61e28
2 changed files with 11 additions and 6 deletions

View File

@ -27,11 +27,12 @@ services:
data:
build: ./data
volumes:
- /var/lib/mysql
- /var/lib/postgres
- /var/lib/mariadb
- /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 ##################################

View File

@ -2,6 +2,10 @@ FROM redis:latest
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
CMD [ "redis-server" ]
#COPY redis.conf /usr/local/etc/redis/redis.conf
VOLUME /data
EXPOSE 6379
CMD ["redis-server"]