From c6837b9fdfbc30d8e3ede381293281db2d6364f0 Mon Sep 17 00:00:00 2001 From: Nya Candy <20502130+Candinya@users.noreply.github.com> Date: Thu, 30 Jul 2020 20:13:38 +0800 Subject: [PATCH] Mapping files folder outside the container (#6598) In order to prevent the loss of files uploaded by users when upgrading Misskey deployed with Docker. **But** it might be necessary to create the folder before `docker-compose up -d` (Not fully tested) --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index dbf154922..df648d291 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,8 @@ services: networks: - internal_network - external_network + volumes: + - ./files:/misskey/files redis: restart: always