Sha256: dea26560ab8582c2d53f77006561c31dde54c50ec8bb9aca8eebc55b9e735adb

Contents?: true

Size: 1.38 KB

Versions: 14

Compression:

Stored size: 1.38 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

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

14 entries across 14 versions & 1 rubygems

Version Path
kontena-cli-1.0.2 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.2.rc2 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.2.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.2.pre1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.1.rc3 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.1.rc2 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.1.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.0 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.0.rc2 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.0.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.0.pre4 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.0.pre3 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.0.pre2 spec/fixtures/stack-with-variables.yml