Add volume to docker for redis
This commit is contained in:
@@ -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>
|
||||
@@ -32,6 +32,8 @@ services:
|
||||
restart: always
|
||||
ports:
|
||||
- ${REDIS_PORT}:6379
|
||||
volumes:
|
||||
- redis-data:/var/lib/redis:rw
|
||||
|
||||
app:
|
||||
container_name: app_${NAME}
|
||||
@@ -89,4 +91,5 @@ services:
|
||||
retries: 20
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
db-data:
|
||||
redis-data:
|
||||
Reference in New Issue
Block a user