* Update command added * Ensure that the upgraded version is really greater * Update command should not update prerelease * Minor presentation changes * Fix command generation in containers from docker-compose file - Refactored service creation * Place the full command to the "cmd" package * Update cobra to v1.4.0 * Updated build and release creation * Created an install script * Add more doc * Add some tests... * Add a test directive in Makefile
30 lines
650 B
YAML
30 lines
650 B
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
webapp:
|
|
image: php:7-apache
|
|
environment:
|
|
DB_HOST: database
|
|
ports:
|
|
- "8080:80"
|
|
labels:
|
|
# expose an ingress
|
|
katenary.io/ingress: 80
|
|
# DB_HOST is actually a service name
|
|
katenary.io/env-to-service: DB_HOST
|
|
depends_on:
|
|
- database
|
|
|
|
database:
|
|
image: mariadb:10
|
|
environment:
|
|
MARIADB_ROOT_PASSWORD: foobar
|
|
MARIADB_USER: foo
|
|
MARIADB_PASSWORD: foo
|
|
MARIADB_DATABASE: myapp
|
|
labels:
|
|
# because we don't provide "ports" or "expose", alert katenary
|
|
# to use the mysql port for service declaration
|
|
katenary.io/ports: 3306
|