[HELP REQUIRED] container not working properly in docker-compose but works fine with docker command

greetings

I have a docker command which works fine

docker run -it -p 8080:80 --name axelor axelor/aio-erp 

but when I run it docker-compose it does not work properly

version: '3.3' services: aio-erp: ports: - '8080:80' container_name: axelor image: axelor/aio-erp 

the container does start but it fails to build DB and WAR files – which it does on the docker command

I have tried adding tty: true and stdin_open: true in docker-compose file but does not as it should

submitted by /u/thebonga
[link] [comments]
Source: Reddit