Add volume to docker for redis

This commit is contained in:
2020-05-27 09:56:54 +02:00
parent bd123d03e9
commit 8ff6fcc970
2 changed files with 5 additions and 4 deletions

View File

@@ -14,8 +14,6 @@
<option name="sourceFilePath" value="docker-compose.yml" />
</settings>
</deployment>
<method v="2">
<option name="Gradle.BeforeRunTask" enabled="true" tasks="build" externalProjectPath="$PROJECT_DIR$" vmOptions="" scriptParameters="" />
</method>
<method v="2" />
</configuration>
</component>

View File

@@ -32,6 +32,8 @@ services:
restart: always
ports:
- ${REDIS_PORT}:6379
volumes:
- redis-data:/var/lib/redis:rw
app:
container_name: app_${NAME}
@@ -90,3 +92,4 @@ services:
volumes:
db-data:
redis-data: