mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-28 19:03:40 +01:00
add azure vote example
This commit is contained in:
parent
0dde95ac1d
commit
4064c84521
17
examples/azure-vote/README.md
Normal file
17
examples/azure-vote/README.md
Normal file
@ -0,0 +1,17 @@
|
||||
# Azure Vote Example
|
||||
|
||||
This example have two containers:
|
||||
|
||||
* backend: `redis` used as storage
|
||||
* frontend: having supervisord, nginx, uwsgi/python
|
||||
|
||||
|
||||
```
|
||||
echo "HOST_PORT=8080" > .env
|
||||
podman-compose up
|
||||
```
|
||||
|
||||
after typing the commands above open your browser on the host port you picked above like
|
||||
[http://localhost:8080/](http://localhost:8080/)
|
||||
|
||||
|
16
examples/azure-vote/docker-compose.yaml
Normal file
16
examples/azure-vote/docker-compose.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
# from https://github.com/Azure-Samples/azure-voting-app-redis/blob/master/docker-compose.yaml
|
||||
version: '3'
|
||||
services:
|
||||
azure-vote-back:
|
||||
image: mcr.microsoft.com/oss/bitnami/redis:6.0.8
|
||||
container_name: azure-vote-back
|
||||
environment:
|
||||
ALLOW_EMPTY_PASSWORD: "yes"
|
||||
azure-vote-front:
|
||||
image: mcr.microsoft.com/azuredocs/azure-vote-front:v1
|
||||
environment:
|
||||
REDIS: azure-vote-back
|
||||
ports:
|
||||
- "${HOST_PORT:-8080}:80"
|
||||
|
Loading…
Reference in New Issue
Block a user