Update docker-compose.yml

Added persistence to mariadb, and cleaned it up a bit
This commit is contained in:
chabad360 2018-10-03 17:05:37 -07:00 committed by GitHub
parent 70a45b2f5d
commit 835e5d60b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@ services:
- MYSQL_USER=root - MYSQL_USER=root
volumes: volumes:
- ./conf/mariadb-conf.d:/etc/mysql/conf.d - ./conf/mariadb-conf.d:/etc/mysql/conf.d
- mariadb:/var/lib/mysql
ports: ports:
- "3307:3306" #mariadb-port - "3307:3306" #mariadb-port
container_name: mariadb container_name: mariadb
@ -15,7 +16,7 @@ services:
image: redis:alpine image: redis:alpine
volumes: volumes:
- ./redis-conf/:/etc/conf.d/ - ./redis-conf:/etc/conf.d
command: ["redis-server","/etc/conf.d/redis_cache.conf"] command: ["redis-server","/etc/conf.d/redis_cache.conf"]
@ -25,7 +26,7 @@ services:
image: redis:alpine image: redis:alpine
volumes: volumes:
- ./redis-conf/:/etc/conf.d/ - ./redis-conf:/etc/conf.d
command: ["redis-server","/etc/conf.d/redis_queue.conf"] command: ["redis-server","/etc/conf.d/redis_queue.conf"]
@ -35,7 +36,7 @@ services:
image: redis:alpine image: redis:alpine
volumes: volumes:
- ./redis-conf/:/etc/conf.d/ - ./redis-conf:/etc/conf.d
command: ["redis-server","/etc/conf.d/redis_socketio.conf"] command: ["redis-server","/etc/conf.d/redis_socketio.conf"]