Skip to content
Snippets Groups Projects
Verified Commit 00fa073a authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[Doc] Add volumes in template

parent d0e97973
No related branches found
No related tags found
No related merge requests found
version: "3.7"
volumes:
# Name of Docker volume
# Declaration of Docker volume
# Also use a name so that Docker Compose does not add
# the current folder name
myvolume:
name: myvolume
# Use as many volumes as you want : one for
# data, one for configuration, etc.
data:
name: data
networks:
# Best pratice : put all services that do not need
......@@ -32,6 +34,15 @@ services:
networks:
- docker_default
- app
volumes:
# Mount the Docker Volume in the container
# to persist the data. The mount point
# is service-dependant.
- data:/mount_point
# Exemple of mounting a file for configuration.
# This is not a Docker volume, but a versionned
# file is this repository.
- ./config.json:/config.json
# Don't put the .example extension, the real
# file will be a copy with real values
env_file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment