-
Notifications
You must be signed in to change notification settings - Fork 443
Self Hosted Docker container - docker compose exits container with code 0 and stops it #306
Comments
Move issue to correct repo |
@nooobcoder could you solve this issue or still need support? |
I have a similar issue and support would be appreciated! System Details I run a normal docker container with
The container just terminates after that. I have the same issue when installing via yarn or npx, that it says that it's building the admin UI and then just terminates after 'compiling successfully'. I just don't understand why it would also happen on docker. Any help would be appreciated~ |
Same issue - Exit code 0 |
I switched to another solution overall, but I think I read somewhere that old CPUs might not be supported by all build steps (due to their instruction sets). Mine was 13-14 years old… I don't have the source anymore though, so take it with a grain of salt |
Same issue here |
I have tried strapi with a postgres db and then too with default sqlite database, none of them worked either on my host machine.
Below are the docker-composes.
COMPOSE STACK WITH POSTGRES DB
COMPOSE STACK WITH sqlite DB (default)
In either of the cases, the strapi app/admin dashboard server was exiting with status code 1.
I am attaching screenshots for relevance.
Also, FYI, there are no issues with postgres db and i can assure you that.
My Guesses
5432
is reserved and i need to use5532
as the port, am i doing something wrong there in the first example of the docker-compose example?code zero
. To be clear with this, I am attaching a screenshot ofhtop
of my host machine when thecompose stack
was being run. (I tried the same things on my AWS EC2 instance 7GB RAM DUAL CORE CPU there were no issues and the application ran without hicups btw i used 5432 as postgres port).I am not jumbling up this thread with screenshots but i can share that in my experiments, this line was the common point of failure for the container to start and i do not why, i had also assigned perms of 777 to the folder and manually ran
npm install
to install any missing dependencies.Also, if you are interested in checking out the contents of the app folder, here is a screenshot of it.
Someone please help me out in this case and I am really in a bad mood after allocating hours of work to set strapi up and end with failure.
Thank You,
Ankur Paul (nooobcoder)
The text was updated successfully, but these errors were encountered: