16 lines
No EOL
643 B
YAML
16 lines
No EOL
643 B
YAML
services:
|
|
terraform:
|
|
image: hashicorp/terraform:latest
|
|
container_name: terraform-worker
|
|
# We mount the current folder into the container so it can see your .tf files
|
|
volumes:
|
|
- .:/app
|
|
working_dir: /app
|
|
# We pass your Komodo secrets into the container
|
|
environment:
|
|
- TF_VAR_pve_endpoint=${TF_VAR_pve_endpoint}
|
|
- TF_VAR_pve_token_id=${TF_VAR_pve_token_id}
|
|
- TF_VAR_pve_token_secret=${TF_VAR_pve_token_secret}
|
|
# This prevents the container from trying to run a service;
|
|
# we want to trigger commands manually or via Komodo Actions.
|
|
entrypoint: ["/bin/sh", "-c", "sleep infinity"] |