Files
frostlabs/tracker/stack.yml
2025-11-14 11:24:19 -05:00

31 lines
844 B
YAML

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