diff --git a/modules/20-services-entertainment/eco-service/.env.example b/modules/20-services-entertainment/eco-service/.env.example new file mode 100644 index 0000000..f74c661 --- /dev/null +++ b/modules/20-services-entertainment/eco-service/.env.example @@ -0,0 +1 @@ +TOKEN= \ No newline at end of file diff --git a/modules/20-services-entertainment/eco-service/main.tf b/modules/20-services-entertainment/eco-service/main.tf index 887bd99..7616a2d 100644 --- a/modules/20-services-entertainment/eco-service/main.tf +++ b/modules/20-services-entertainment/eco-service/main.tf @@ -12,6 +12,7 @@ locals { eco_tag = var.image_tag env_file = "${path.module}/.env" eco_internal_port = 3000 + eco_token = provider::dotenv::get_by_key("TOKEN", local.env_file) } module "eco" { @@ -21,6 +22,7 @@ module "eco" { tag = local.eco_tag networks = var.networks restart_policy = "always" + command = [ "./EcoServer", "--nogui", "--userToken=${local.eco_token}" ] ports = [ { internal = 3000