Setup fails on windows 7


#1

Hi,
I am trying to setup the server on windows 7 platform for testing and development purposes.
I followed the instructions in the document: “How to set up the metasfresh stack using Docker”.
I was able to build the the Docker container. docker-compose build with no issues.
I failed to start the Docker container: docker-compose up -d
I get the error below that i don’t know how to fix:

ERROR: for metasfresh-docker_webui_1 Cannot create container for service webui:
b’create WEBAPI_URL=http: “WEBAPI_URL=http” includes invalid characters for a local volume name, only “[a-zA-Z0-9][a-zA-Z0-9_.-]” are allowed. If you intended to pass a host directory, use absolute path’

Here is the docker-compose.yml for reference:
the only change i made was on the - WEBAPI_URL=http://localhost

db:
build: db
restart: always
volumes:
- ./volumes/db/data:/var/lib/postgresql/data
- ./volumes/db/log:/var/log/postgresql
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- METASFRESH_USERNAME=metasfresh
- METASFRESH_PASSWORD=metasfresh
- METASFRESH_DBNAME=metasfresh
- DB_SYSPASS=System
app:
build: app
hostname: app
links:
- db:db
- rabbitmq:rabbitmq
- search:search
expose:
- “8282”
- “61616”
- “8788”
restart: always
volumes:
- ./volumes/app/log:/opt/metasfresh/log:rw
- ./volumes/app/heapdump:/opt/metasfresh/heapdump:rw
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- METASFRESH_HOME=/opt/metasfresh
webapi:
build: webapi
links:
- app:app
- db:db
- rabbitmq:rabbitmq
- search:search
expose:
- “8789”

to access the webui-api directly

(eg. for debugging or connecting your app to the metasfresh api)

uncomment following port:

#ports:
#- “8080:8080”
restart: always
volumes:
- ./volumes/webapi/log:/opt/metasfresh-webui-api/log:rw
- ./volumes/webapi/heapdump:/opt/metasfresh-webui-api/heapdump:rw
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
webui:
build: webui
links:
- webapi:webapi
ports:
- “80:80”
- “443:443”
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
#uncomment and set to URL where metasfresh will be available from browsers
#environment:
#- WEBAPI_URL=http://example.com:8080
- WEBAPI_URL=http://localhost
rabbitmq:
build: rabbitmq
expose:
- “5672”
restart: always
volumes:
- ./volumes/rabbitmq/log:/var/log/rabbitmq/log
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
RABBITMQ_DEFAULT_USER: “metasfresh”
RABBITMQ_DEFAULT_PASS: “metasfresh”
RABBITMQ_DEFAULT_VHOST: “/”
search:
build: search
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK

to access the search api directly

(e.g. if you did docker-compose up search to have the deachboard with your locally running metasfresh services)

uncomment following ports:

ports:

- “9200:9200”

- “9300:9300”

volumes:
- ./volumes/search/data:/usr/share/elasticsearch/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- “ES_JAVA_OPTS=-Xms128M -Xmx256m”
restart: always

Appreciate your help, Thanks.


#2

Hi @Saadalla
It looks like you forgot to uncomment the environment part in your webapi-subsection

it should look like this:

  environment:
    - WEBAPI_URL=http://localhost

Btw.: you can format code using Markdown Syntax. With three backticks (```) opening and closing your code. check more infos here: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code