Sha256: e2676d72d56142a96bfdf624cf2bf2f5ac3fc89ef849724b26e42799b9131d3f

Contents?: true

Size: 1.5 KB

Versions: 52

Compression:

Stored size: 1.5 KB

Contents

stack: user/stackname
version: 0.1.1
variables:
  wp_pass:
    type: string # has a callback that writes the value to vault
    required: true
    min_length: 10
    empty_is_nil: true
    from:
      env: WORDPRESS_DB_PASSWORD # first try from local env
      random_string: # if prompt returned nil, generate a random string
        length: 10
        charset: ascii_printable
    to:
      env: WP_PASS # put it to WP_PASS env variable
  test_var:
    type: string
    from:
      random_string:
        length: 16
        charset: hex
    to:
      env: test_var
  TEST_ENV_VAR:      # the default from/to is to set/read env of the option name
    type: string
  tag:
    type: string
    from:
      env: TAG
    to:
      env: TAG
  MYSQL_IMAGE:
    type: string
    empty_is_nil: false

services:
  wordpress:
    extends:
      file: docker-compose_v2.yml
      service: wordpress
    image: "wordpress:$TAG"
    stateful: true
    environment:
      - WORDPRESS_DB_PASSWORD=${STACK}_secret
    secrets:
      - secret: WP_ADMIN_PASSWORD
        name: WORDPRESS_PASSWORD
        type: env
      - secret: FOO
        name: FOOFOO
        type: env
    instances: 2
    deploy:
      strategy: ha
  mysql:
    extends:
      file: docker-compose_v2.yml
      service: mysql
    image: ${MYSQL_IMAGE}
    stateful: true
    secrets:
      - secret: WP_MYSQL_ROOT_PW
        name: MYSQL_PASSWORD
        type: env
    environment:
      - INTERNAL_VAR=$$INTERNAL_VAR
      - RANDOM_VAR=${test_var}
      - TEST_VAR=$TEST_ENV_VAR

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
kontena-cli-1.3.5 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.5.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.0.pre6 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.0.pre5 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.0.pre4 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.0.pre3 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.0.pre2 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.0.pre1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.4 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.4.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.3 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.3.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.2 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.2.rc2 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.2.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.1.rc2 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.1.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.0 spec/fixtures/stack-with-variables.yml
kontena-cli-1.3.0.rc4 spec/fixtures/stack-with-variables.yml