Skip to content

Commit 88d606e

Browse files
committed
Updating README to include stack deploy instructions
1 parent 1d7bae1 commit 88d606e

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,23 @@ Instavote
44
Getting started
55
---------------
66

7-
Download [Docker for Mac or Windows](https://www.docker.com).
7+
Download [Docker](https://www.docker.com/products/overview). If you are on Mac or Windows, [Docker Compose](https://docs.docker.com/compose) will be automatically installed. On Linux, make sure you have the latest version of [Compose](https://docs.docker.com/compose/install/).
88

99
Run in this directory:
10-
11-
$ docker-compose up
12-
10+
```
11+
docker-compose up
12+
```
1313
The app will be running at [http://localhost:5000](http://localhost:5000), and the results will be at [http://localhost:5001](http://localhost:5001).
1414

15+
Alternately, if you want to run it on a [Docker Swarm](https://docs.docker.com/engine/swarm/), first make sure you have a Swarm. If you don't, run:
16+
```
17+
docker swarm init
18+
```
19+
Once you have your swarm, in this directory run:
20+
```
21+
docker stack deploy --compose-file docker-stack.yml vote
22+
```
23+
1524
Architecture
1625
-----
1726

0 commit comments

Comments
 (0)