Sha256: cddd861d4de5a689bebb4f8fe4e68d2f42cee78e5ad2e353f0ced6983864f286

Contents?: true

Size: 1.37 KB

Versions: 11

Compression:

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

11 entries across 11 versions & 1 rubygems

Version Path
kontena-cli-1.1.0.pre1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.6 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.6.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.5 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.5.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.5.pre1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.4 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.4.rc2 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.4.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.3 spec/fixtures/stack-with-variables.yml
kontena-cli-1.0.3.rc1 spec/fixtures/stack-with-variables.yml