From 09e90541373ae8c46d1fc1a7ea19563d66aa0521 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 14 Nov 2025 11:24:19 -0500 Subject: [PATCH] Tracker Deployed to Production --- tracker/stack.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tracker/stack.yml diff --git a/tracker/stack.yml b/tracker/stack.yml new file mode 100644 index 0000000..9ec9a2c --- /dev/null +++ b/tracker/stack.yml @@ -0,0 +1,30 @@ +services: + tracker-nginx: + image: nginx:alpine + ports: + - 8180:80 + networks: + - frostlabs + volumes: + - /home/doc/projects/swarm-data/webservers/production/nginx/nginx.conf:/etc/nginx/nginx.conf:ro + - /home/doc/projects/swarm-data/webservers/production/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro + - /home/doc/projects/swarm-data/webfiles/production/taylors-development:/usr/share/nginx/html:ro + healthcheck: + test: [ "CMD-SHELL", "curl -f http://localhost:80 || exit 1" ] + interval: 30s + timeout: 5s + retries: 3 + start_period: 10s + deploy: + replicas: 1 + placement: + constraints: + - node.labels.task == compute + resources: + limits: + memory: 256M + reservations: + memory: 64M +networks: + frostlabs: + external: true