wrong message in the form.io

181 views Asked by At

I am trying to execute formio with docker-compose, but the application is wrong.

services:
  mongo:
    image: mongo:4.2
    restart: always
    volumes:
      - mdb-data:/data/db
    networks:
      - app-mongo
    ports:
      - '27017:27017'
    environment:
      MONGO_INITDB_ROOT_USERNAME:
      MONGO_INITDB_ROOT_PASSWORD:

  formio:
    build: ./
    restart: always
    links:
      - mongo
    ports:
      - '3001:3001'
    volumes:
      - ./:/app:rw
    networks:
      - app-mongo
    environment:
      DEBUG: formio:*
      NODE_CONFIG: '{"mongo": "mongodb://mongo:27017/formio"}'
      ROOT_EMAIL: [email protected]
      ROOT_PASSWORD: CHANGEME
    stdin_open: true  # -i
    tty: true         # -t

when i execute localhost:3001 - show me the wrong message:

TypeError: Could not connect to API server (Failed to fetch)

How to executed form.io with docker-compose?

Thanks

0

There are 0 answers