services:
    rundeck-build:
        image: "rundeck:${RUNDECK_VERSION}"
        profiles: ["build", "build-rundeck"]
        build:
            context: "build-context/rundeck"
            dockerfile: Dockerfile
            args:
                EXAMPLE_ARG_FOR_DOCKERFILE: "${EXAMPLE_ARG_FROM_ENV_FILE}"
                RUNDECK_VERSION: "${RUNDECK_VERSION}"
    postgres-build:
        image: "postgres:${POSTGRES_VERSION}"
        profiles: ["build", "build-postgres"]
        build:
            context: "build-context/postgres"
            dockerfile: Dockerfile
            args:
                EXAMPLE_ARG_FOR_DOCKERFILE: "${EXAMPLE_ARG_FROM_ENV_FILE}"
                POSTGRES_VERSION: "${POSTGRES_VERSION}"