Sha256: f7cf0c53bd9f2d0881d2354101f97a21b56c94439476c8a0eb4d04d9f632bc73

Contents?: true

Size: 1.57 KB

Versions: 31

Compression:

Stored size: 1.57 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
      - STACK=${STACK}
      - GRID=${GRID}
      - PLATFORM=${PLATFORM}
    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

31 entries across 31 versions & 1 rubygems

Version Path
kontena-cli-1.5.4 spec/fixtures/stack-with-variables.yml
kontena-cli-1.5.4.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.5.3 spec/fixtures/stack-with-variables.yml
kontena-cli-1.5.2 spec/fixtures/stack-with-variables.yml
kontena-cli-1.5.1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.5.0 spec/fixtures/stack-with-variables.yml
kontena-cli-1.5.0.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.5.0.pre5 spec/fixtures/stack-with-variables.yml
kontena-cli-1.5.0.pre4 spec/fixtures/stack-with-variables.yml
kontena-cli-1.5.0.pre3 spec/fixtures/stack-with-variables.yml
kontena-cli-1.5.0.pre2 spec/fixtures/stack-with-variables.yml
kontena-cli-1.5.0.pre1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.3 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.3.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.2 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.2.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.2.pre1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.1.rc1 spec/fixtures/stack-with-variables.yml
kontena-cli-1.4.1.pre1 spec/fixtures/stack-with-variables.yml