Skip to content

Instantly share code, notes, and snippets.

@gjonespf
Last active December 14, 2017 01:39
Show Gist options
  • Select an option

  • Save gjonespf/c244afb2daad50b56a7d7aad485b09e4 to your computer and use it in GitHub Desktop.

Select an option

Save gjonespf/c244afb2daad50b56a7d7aad485b09e4 to your computer and use it in GitHub Desktop.
Simple Stack
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:
#!/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