-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't deploy apostroheCMS via Docker Compose #4645
Comments
Is your project based on one of the starter kits, or completely custom? |
I looked at the docs and took note of the build-assents.sh script, Dockerfile and docker-compose.yml: https://docs.apostrophecms.org/cookbook/using-docker.html I then compared the docker compose file from the docs to the compose file i use for my services (no exposed ports, different way of volume mounting, inside docker network etc.) As stated above, Containers seemd to have started successfully so i don't think that the issue lies in my spefific compose file. |
What does this line mean, " i've cloed the full repository". What full repository? |
I had a typo there, i meant It didn't seemd to me that there was an ready built image avaiable on dockerhup which is why i cloned this repo https://github.com/apostrophecms/apostrophe I've now took the neccecary files from https://github.com/apostrophecms/apostrophe-boilerplate/tree/main and started the deployment. It have a Tracelog when running the file:
Note that my mongodb instance is isnide the same docker network (so accessable by apotrospheCMS, yet it seem to look at localhost and iÄm not sure, where i can change it.
|
So - the apostrophe-boilerplate repo is for an older version of Apostrophe. You are getting closer though. The Apostrophe repo is the code for the core of an ApostropheCMS project. As it shows in this documentation (https://docs.apostrophecms.org/cookbook/using-docker.html#apostrophe-project-setup) you should start from a starter kit like this one: https://github.com/apostrophecms/starter-kit-essentials or this one https://github.com/apostrophecms/public-demo |
Hello, so for some reason, i can't seem to deploy the docker container, i've cloed the full reposetory and manually added the build-assents.sh script in the scripts Folder.
Here the Dockerfile:
Here the
build-assents.sh
script:I've never written an single line of Javascript myself but from the Error logs i'm seeing, it can't find module app and app.js.
I changed it to index.js which seem to have resolvd the error and it seemed at first glance, that everythign worked as intented now, but hold on, i tried Checking the logs and got Nothing, i then checked running docker containers and found out, that the Apostrophe container was Always in restarting state.
I then went ahead and wanted to check the MongoDB logs, seem like that the MongoDB container either never started or instantly stopped.
I have to admit that i made some slight ajustments to the compose file to fit my Needs:
I hope somebody here can help me with this issue:
Thanks in Advance,
Regards,
FuckingToasters
The text was updated successfully, but these errors were encountered: