我有 7 个 docker 容器
容器之间的通信应该如下所示
现有的 docker-compose
version: '3.1'
services:
postgres_db:
container_name: postgres_db
image: postgres:9.6
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- ${POSTGRES_PORT}:5432
networks:
- postgres_db
restart: unless-stopped
volumes:
- db_data:/var/lib/postgresql/data_test
es_search:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.1
container_name: es_search
environment:
- cluster.name=fusionauth
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=${ES_JAVA_OPTS}"
ports:
- ${ES1_PORT}:9200
- ${ES_PORT}:9300
networks:
- es_search
restart: unless-stopped
ulimits:
memlock:
soft: -1
hard: -1 …Run Code Online (Sandbox Code Playgroud) 我使用 Fusion Auth 作为我项目的身份验证后端。
如下所示启动容器后(https://fusionauth.io/docs/v1/tech/installation-guide/docker),如果我们打开 URL(例如:http://localhost:9011),我们需要创建管理员用户,然后我们将能够创建应用程序、API 密钥、Lambda。
由于我的项目不涉及 UI 交互,我想创建不涉及 UI 交互的应用程序(即设置向导)。
我找不到与设置向导相关的 API。
因为我看到Since this is your own private instance of FusionAuth, you need to create a new administrator account that you will use to log in to the FusionAuth web interface.在设置向导我认为这是必需只针对UI,所以我试图创建应用程序使用这个(https://fusionauth.io/docs/v1/tech/apis/applications#create-an-application)API ,但它返回 401(未经授权)。
有人可以帮助我创建无需身份验证的应用程序或绕过设置向导吗?