-
-
Notifications
You must be signed in to change notification settings - Fork 561
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Docker compose not starting local server for development #113
Comments
Not sure what's going on here, running fine for me. Only difference am using macOS |
@swiftugandan do you have similar docker specs? Is the warning at the top i.e |
@swiftugandan can you post your logs for |
|
I don't think it is due docker version. I have similar specs as mentioned in https://github.com/mediacms-io/mediacms/blob/main/docs/Docker_deployment.md. @swiftugandan Thanks for responding. Can you paste your logs to help me understand better? |
|
can also try: docker/compose#6539 (comment) |
@swiftugandan Yes, I tried |
No I have not changed it ...
My web container outputs the above, without any logs in debug. If your output is similar, then I think the problem may be with the host failing to access the running service, I am not a keen windows user, but things like the firewall, AV, etc have messed up with network services for me on windows in the past! |
@swiftugandan It's working now. I used the |
Does the default docker-compose.yaml work using the upgraded docker?
…On Sat, 27 Mar 2021, 06:44 Hemant Singh, ***@***.***> wrote:
@swiftugandan <https://github.com/swiftugandan> It's working now. I used
the docker-compose-named-volume.yaml and it started the server after few
minutes. Also I installed *Docker desktop 3.0.0* that installed *Docker
version 20.10.0, build 7287ab3* and *docker-compose version 1.27.4, build
40524192*. Should I edit Readme.md to add these points for windows?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFQ5FNSAY5RW47GQJWWJB3TFV5EFANCNFSM4Z3VXZ2A>
.
|
No, it gives volume error |
I have successfully deployed MediaCMS locally but my changes are not reflected in localhost. It is due to docker-compose fetching image from DockerHub which have this source repository. So how to test changes locally? Do I need to create my own copy of this image on DockerHub? @swiftugandan @mgogoulos |
If you are using named volumes you will need to build a new image to see
your changes. You can do this by using `docker build -t
mediacms/mediacms:latest .` There is no need to create your own image on
dockerhub
…On Sat, 27 Mar 2021, 08:42 Hemant Singh, ***@***.***> wrote:
I have successfully deployed MediaCMS locally but my changes are not
reflected in localhost. It is due to docker-compose fetching image from
DockerHub which have this source repository. So how to test changes
locally? Do I need to create my own copy of this image on DockerHub?
@swiftugandan <https://github.com/swiftugandan> @mgogoulos
<https://github.com/mgogoulos>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFQ5FPA5DGUF7GXDKYBCD3TFWK5ZANCNFSM4Z3VXZ2A>
.
|
@swiftugandan Silly of me, of course, I can build a local image. Can you give me steps for development setup? I don't think, I would have to build an image and then run docker-compose, after every change. |
Mount the host files into the container (default docker-compose.yaml) ... but the fact that this is not working in your case, I don't know how else you can make it easier. Have you tried using a linux distro (eg. Ubuntu) instead? |
I don't have a Linux system at my disposal. Using |
Those are just examples of some of the scenarios mediacms can be deployed
using docker. They are just a starting point for anyone who wants to use
the docker setup.
As for the postgres issue you are having, you could use the database
service in the named volumes example. Remember to add the postgres volume
…On Sat, 27 Mar 2021, 16:36 Hemant Singh, ***@***.***> wrote:
I don't have a Linux system at my disposal. Using docker-compose.yaml is
giving me this error - FATAL: data directory "/var/lib/postgresql/data"
has invalid permissions. Why are there different docker-compose- files
and what is purpose of each?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFQ5FMMMEIPKYBAN5XIEGLTFYCQZANCNFSM4Z3VXZ2A>
.
|
Try this config, which uses a named volume for the postgres database, and host mount for the application source, media and static files
|
This is a more minimal deployment for local development, let me know if it works so I can add it as a developer example:
|
@swiftugandan I have tried both these before. The problem seems to be this line - |
https://stackoverflow.com/questions/60916317/using-docker-for-windows-to-volume-mount-a-windows-drive-into-a-linux-container
https://rominirani.com/docker-on-windows-mounting-host-directories-d96f3f056a2c
…On Sun, 28 Mar 2021, 07:58 Hemant Singh, ***@***.***> wrote:
@swiftugandan <https://github.com/swiftugandan> I have tried both these
before. The problem seems to be this line -
volumes: - ./:/home/mediacms.io/mediacms/
when added with either web or celery it gives error message - standard_init_linux.go:219:
exec user process caused: no such file or directory. I think there is a
different way to mount windows folder to linux directory. If I replace
./:/home/mediacms.io/mediacms/ with named volume, it works perfectly but
then the changes will not be reflected for development.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFQ5FJV233GCVO7AVHK6PDTF3HRXANCNFSM4Z3VXZ2A>
.
|
When using
But log of
No Nginx server is started. Log of
|
So earlier |
Looks like you are experiencing this issue now.
docker/for-win#39 - look at the end, windows +
docker seems to have a few mines!
Perhaps you can consider Ubuntu on virtualbox or wsl
…On Sun, 28 Mar 2021, 13:13 Hemant Singh, ***@***.***> wrote:
So earlier web_1 was exiting. But now it's not exiting but the server is
not running.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFQ5FIDCNYF2KDUFY2O73TTF4MNPANCNFSM4Z3VXZ2A>
.
|
I think this should be moved to discussions @mgogoulos |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I wanted to setup a development environment on my local system. I followed all steps as mentioned in https://github.com/mediacms-io/mediacms#docker-compose-installation.
OS : Windows 10
Docker Engine: Docker version 19.03.1, build 74b1e89e8a
Docker Compose: docker-compose version 1.24.1, build 4667896b
On running
docker-compose up
all steps were markeddone
but at the end, there is no log for server starting.http://localhost/
gives no result,Site can't be reached
.Am I missing something here? @mgogoulos
Log for
docker-compose up
-The text was updated successfully, but these errors were encountered: