Last active
December 14, 2017 01:39
-
-
Save gjonespf/c244afb2daad50b56a7d7aad485b09e4 to your computer and use it in GitHub Desktop.
Simple Stack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.2" | |
| # docker stack deploy --compose-file docker-compose.yml build | |
| services: | |
| my-test-server: | |
| image: nginx | |
| ports: | |
| - "80" | |
| volumes: | |
| - my-test-store-s3:/usr/share/nginx/html/s3:ro | |
| networks: | |
| - web-ingress | |
| networks: | |
| web-ingress: | |
| external: true | |
| volumes: | |
| my-test-store-s3: | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| docker network rm web-ingress | |
| docker network create --driver=overlay web-ingress | |
| docker stack deploy --compose-file docker-compose.yml build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment