mirror of
https://github.com/dockersamples/example-voting-app.git
synced 2026-02-14 10:19:52 +00:00
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -5,7 +5,7 @@
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Note: Results debugger",
|
||||
"name": "Node: Results debugger",
|
||||
"type": "node",
|
||||
"request": "attach",
|
||||
"port": 9229,
|
||||
|
||||
@@ -14,7 +14,7 @@ Run in this directory to build and run the app:
|
||||
docker compose up
|
||||
```
|
||||
|
||||
The `vote` app will be running at [http://localhost:5000](http://localhost:5000), and the `results` will be at [http://localhost:5001](http://localhost:5001).
|
||||
The `vote` app will be running at [http://localhost:8080](http://localhost:8080), and the `results` will be at [http://localhost:8081](http://localhost:8081).
|
||||
|
||||
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:
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ services:
|
||||
redis:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "5000:80"
|
||||
- "8080:80"
|
||||
networks:
|
||||
- front-tier
|
||||
- back-tier
|
||||
@@ -22,7 +22,7 @@ services:
|
||||
db:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "5001:80"
|
||||
- "8081:80"
|
||||
networks:
|
||||
- front-tier
|
||||
- back-tier
|
||||
|
||||
@@ -19,7 +19,7 @@ services:
|
||||
volumes:
|
||||
- ./vote:/usr/local/app
|
||||
ports:
|
||||
- "5000:80"
|
||||
- "8080:80"
|
||||
networks:
|
||||
- front-tier
|
||||
- back-tier
|
||||
@@ -34,7 +34,7 @@ services:
|
||||
volumes:
|
||||
- ./result:/usr/local/app
|
||||
ports:
|
||||
- "5001:80"
|
||||
- "8081:80"
|
||||
- "127.0.0.1:9229:9229"
|
||||
networks:
|
||||
- front-tier
|
||||
|
||||
@@ -24,7 +24,7 @@ services:
|
||||
vote:
|
||||
image: dockersamples/examplevotingapp_vote
|
||||
ports:
|
||||
- 5000:80
|
||||
- 8080:80
|
||||
networks:
|
||||
- frontend
|
||||
deploy:
|
||||
@@ -33,7 +33,7 @@ services:
|
||||
result:
|
||||
image: dockersamples/examplevotingapp_result
|
||||
ports:
|
||||
- 5001:80
|
||||
- 8081:80
|
||||
networks:
|
||||
- backend
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
- name: "result-service"
|
||||
port: 5001
|
||||
port: 8081
|
||||
targetPort: 80
|
||||
nodePort: 31001
|
||||
selector:
|
||||
|
||||
@@ -8,7 +8,7 @@ spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
- name: "vote-service"
|
||||
port: 5000
|
||||
port: 8080
|
||||
targetPort: 80
|
||||
nodePort: 31000
|
||||
selector:
|
||||
|
||||
Reference in New Issue
Block a user