diff --git a/stacks/tracker/stack.yml b/stacks/tracker/stack.yml new file mode 100644 index 0000000..3bec01e --- /dev/null +++ b/stacks/tracker/stack.yml @@ -0,0 +1,19 @@ +services: + tracker-nginx: + image: nginx:alpine + ports: + - 8180:80 + networks: + - homelab + volumes: + - /mnt/swarm-data/webservers/production/nginx/nginx.conf:/etc/nginx/nginx.conf:ro + - /mnt/swarm-data/webservers/production/nginx/.conf/default.conf:/etc/nginx/conf.d/default.conf:ro + - /mnt/swarm-data/webfiles/production/taylors-development:/usr/share/nginx/html:ro + deploy: + replicas: 3 + placement: + constraints: + - node.role == worker +networks: + homelab: + external: true \ No newline at end of file