Tracker Deployed to Production
This commit is contained in:
30
tracker/stack.yml
Normal file
30
tracker/stack.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user