Multi-Tiered Deployment
Deploy a Multi-Tiered Application
Before We Begin
Create the Deployment Configuration
---
version: "2.0"
services:
redis:
image: bitnami/redis:6.2
env:
- REDIS_AOF_ENABLED=no
- ALLOW_EMPTY_PASSWORD=yes
expose:
- port: 6379
to:
- service: goosebin
goosebin:
image: hydrogen18/goosebin:latest
env:
- REDIS_HOST=redis
- REDIS_PORT=6379
- PASTE_SIZE_LIMIT=100000
- HTTP_PORT=8000
depends_on:
- redis
expose:
- port: 8000
as: 80
to:
- global: true
profiles:
compute:
redis:
resources:
cpu:
units: 1
memory:
size: 128Mi
storage:
size: 16Mi
goosebin:
resources:
cpu:
units: 1
memory:
size: 64Mi
storage:
size: 16Mi
placement:
dc1:
pricing:
redis:
denom: unxq
amount: 9999
goosebin:
denom: unxq
amount: 9999
deployment:
redis:
dc1:
profile: redis
count: 1
goosebin:
dc1:
profile: goosebin
count: 1Services
Profiles
Deployments
Deployment
Last updated