FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
voting-app/docker-stack.yml at main · gitpod-samples/voting-app · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
gitpod-samples
/
voting-app
Public
forked from
dockersamples/example-voting-app
Notifications
You must be signed in to change notification settings
Fork
8
Star
4
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
voting-app
/
docker-stack.yml
Copy path
More file actions
More file actions
Latest commit
History
History
History
53 lines (44 loc) · 982 Bytes
Breadcrumbs
voting-app
/
docker-stack.yml
Copy path
File metadata and controls
53 lines (44 loc) · 982 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
this file is meant for Docker Swarm stacks only
#
trying it in compose will fail because of multiple replicas trying to bind to the same port
#
Swarm currently does not support Compose Spec, so we'll pin to the older version 3.9
version
:
"
3.9
"
services
:
redis
:
image
:
redis:alpine
networks
:
-
frontend
db
:
image
:
postgres:15-alpine
environment
:
POSTGRES_USER
:
"
postgres
"
POSTGRES_PASSWORD
:
"
postgres
"
volumes
:
-
db-data:/var/lib/postgresql/data
networks
:
-
backend
vote
:
image
:
dockersamples/examplevotingapp_vote
ports
:
-
5000:80
networks
:
-
frontend
deploy
:
replicas
:
2
result
:
image
:
dockersamples/examplevotingapp_result
ports
:
-
5001:80
networks
:
-
backend
worker
:
image
:
dockersamples/examplevotingapp_worker
networks
:
-
frontend
-
backend
deploy
:
replicas
:
2
networks
:
frontend
:
backend
:
volumes
:
db-data
:
Back
|
FazBrowse Home
|
New Git URL