Skip to content

Commit

Permalink
Carpeta de Stacks agregada
Browse files Browse the repository at this point in the history
  • Loading branch information
aminespinoza10 committed Nov 7, 2024
1 parent e2608df commit ab82588
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Stacks/app/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx:1.21.6

RUN echo '<html><body>Mi página de inicio personalizada como frontend</body></html>' > /usr/share/nginx/html/index.html
30 changes: 30 additions & 0 deletions Stacks/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
services:
web:
image: nginx:latest
ports:
- "80:80"
deploy:
replicas: 3
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: on-failure
networks:
- frontend

app:
image: frontend:latest
deploy:
replicas: 5
restart_policy:
condition: any
networks:
- frontend
- backend

networks:
frontend:
driver: overlay
backend:
driver: overlay

0 comments on commit ab82588

Please # to comment.