forked from LaconicNetwork/kompose
This does a major refactor on the compose.go functions as well as brings in a new era of v3 support to Kompose. Similar to how we utilize libcompose, we utilize docker/cli's "stack deploy" code which has a built-in v3 parser. We convert the parsed structure to our own and then convert it to Kubernetes/OpenShift artifacts.
25 lines
435 B
YAML
25 lines
435 B
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
redis-master:
|
|
image: gcr.io/google_containers/redis:e2e
|
|
ports:
|
|
- "6379"
|
|
|
|
redis-slave:
|
|
image: gcr.io/google_samples/gb-redisslave:v1
|
|
ports:
|
|
- "6379"
|
|
environment:
|
|
- GET_HOSTS_FROM=dns
|
|
|
|
frontend:
|
|
image: gcr.io/google-samples/gb-frontend:v4
|
|
ports:
|
|
- "80:80"
|
|
environment:
|
|
- GET_HOSTS_FROM=dns
|
|
labels:
|
|
kompose.service.type: LoadBalancer
|