Store data in docker volume instead of project dir

This commit is contained in:
Vivek Santayana 2022-06-22 15:05:44 +01:00
parent 9e1c9caec6
commit 519394a656

View File

@ -1,5 +1,8 @@
version: '3.9' version: '3.9'
volumes:
data:
services: services:
nginx: nginx:
container_name: reftest_server container_name: reftest_server
@ -31,7 +34,7 @@ services:
ports: ports:
- 5000 - 5000
volumes: volumes:
- ./ref-test/data:/ref-test/data - data:/ref-test/data
restart: unless-stopped restart: unless-stopped
networks: networks:
- frontend - frontend