Score:0

Docker compose scale with different environment variable value

cn flag

I want to achieve scaling of the container based on the array of values (like a matrix set of values used for creating containers). I can't do scaling with a single container in docker compose file:

services:
  runner:
    image: gitea/act_runner:$VERSION
    pull_policy: always
    restart: unless-stopped
    volumes:
      - "./data/${TOKEN}:/data"
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - GITEA_INSTANCE_URL=https://gitea.self.hosted
      - GITEA_RUNNER_REGISTRATION_TOKEN=$TOKEN

Service not allow to create more that one instance with the same token. So I have multiple tokens and based on them creating separate similar containers in docker compose.

Is it possible to create containers based on the amount of the tokens?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.