diff --git a/docker-compose.yml b/docker-compose.yml index 79d6454..6ca98af 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,9 +10,18 @@ services: environment: - NODE_ENV=production restart: unless-stopped + volumes: + - scriptshare_data:/usr/share/nginx/html + - scriptshare_logs:/var/log/nginx healthcheck: test: ["CMD", "curl", "-f", "http://localhost/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s + +volumes: + scriptshare_data: + driver: local + scriptshare_logs: + driver: local