Skip to content

Commit 4064c84

Browse files
add azure vote example
1 parent 0dde95a commit 4064c84

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

examples/azure-vote/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Azure Vote Example
2+
3+
This example have two containers:
4+
5+
* backend: `redis` used as storage
6+
* frontend: having supervisord, nginx, uwsgi/python
7+
8+
9+
```
10+
echo "HOST_PORT=8080" > .env
11+
podman-compose up
12+
```
13+
14+
after typing the commands above open your browser on the host port you picked above like
15+
[http://localhost:8080/](http://localhost:8080/)
16+
17+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
# from https://github.com/Azure-Samples/azure-voting-app-redis/blob/master/docker-compose.yaml
3+
version: '3'
4+
services:
5+
azure-vote-back:
6+
image: mcr.microsoft.com/oss/bitnami/redis:6.0.8
7+
container_name: azure-vote-back
8+
environment:
9+
ALLOW_EMPTY_PASSWORD: "yes"
10+
azure-vote-front:
11+
image: mcr.microsoft.com/azuredocs/azure-vote-front:v1
12+
environment:
13+
REDIS: azure-vote-back
14+
ports:
15+
- "${HOST_PORT:-8080}:80"
16+

0 commit comments

Comments
 (0)