Error Docker Compose, a non right site is Displayed to me

Hello,
I want to use Metasfresh in Docker Conatiner and I have a few small start-up difficulties.
For my virtualization environment, I use Docker 20.10.6 build 370c289 on an Ubuntu 20.04.2. I assigned two sockets with 8 cores and 16 GB RAM to the Ubuntu VM.
I have used several Compose scripts including the standard script and the Compose script on the Metasfresh website. Both scripts work wonderfully, but when I try to log on to the web service, only an incomplete page is displayed to me.

I also tried the Chrome, Edge and Firefox.

Can anyone help me further?

This is how my Docker looks like

Cloud anybody please help me?

version: ‘3.2’
services:
db:
image: metasfresh/metasfresh-db:latest
volumes:
- /srv/db/data:/var/lib/postgresql/data
- /srv/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
- POSTGRES_PASSWORD=ip2LmNzXX8p8iXg9lZTWEJ9524kQDbXFudB7LR03T-xK9fLweX3TLMkA2AYcEiaS
hostname: db

app:
image: metasfresh/metasfresh-app:latest
depends_on:
- db
links:
- db:db
- search:search
- rabbitmq:rabbitmq
expose:
- “8282”
- “61616”
volumes:
- /srv/app/log:/opt/metasfresh/log
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- METASFRESH_HOME=/opt/metasfresh
hostname: app

webapi:
image: metasfresh/metasfresh-webapi:latest
depends_on:
- db
- app
- search
links:
- app:app
- db:db
- search:search
- rabbitmq:rabbitmq
expose:
- “8789”
volumes:
- /srv/webapi/log:/opt/metasfresh-webui-api/log
- /srv/webapi/heapdump:/opt/metasfresh-webui-api/heapdump
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
hostname: webapi

rabbitmq:
image: metasfresh-docker_rabbitmq:latest
expose:
- “5672”
volumes:
- /srv/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: “/”
hostname: rabbitmq

webui:
image: metasfresh/metasfresh-webui:latest
depends_on:
- db
- app
- webapi
links:
- webapi:webapi
ports:
- “80:80”
- “443:443”
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- WEBAPI_URL=http://10.16.0.105:8789
hostname: webui

search:
image: metasfresh-docker_search:latest
depends_on:
- db
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- /srv/search/data:/usr/share/elasticsearch/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- “ES_JAVA_OPTS=-Xms128M -Xmx256m”
hostname: search

just the webui goes always down and I dont know why…

Hi @ksbs

Looks like you tried converting the docker-compose.yml to docker-compose v3 and you’re using the blank images instead of build: from local folders/Dockerfiles.

Currently, we’re not supporting starting just base-images since there are config-files and certificates that need to be placed in the local image when you build the container image.

Can you check if the compose file from here: https://github.com/metasfresh/metasfresh-docker/blob/master/docker-compose.yml is working (without converting it to v3)?
Also, you might want to test using build: instead of image: using locally deployed Dockerfiles.

Anyway, your attempt to convert the docker-compose.yml to v3 looks very promising - however, the application cannot handle this (yet).

Hi,

ich hatte die docker-compose von github schon ausprobiert, leider ohne erfolg. Das erstellen ist zwar kein Problem jedoch wird mit beim anmelden keine Vollständige seite angezeigt. Dachte zuerst das es an einen SSL cert liegt, aber es war nicht der fall.

Habe mein fehler gefunden, es war eine nicht richtig gesetzte Zeitzone…

1 Like