-
Notifications
You must be signed in to change notification settings - Fork 22
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
Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80 #50
Comments
Possibly related to #12 Try switching to named volumes, change the following:
to - ba-storage:/var/www/cocktails/storage And add the following at the end of the file
You can refrence the following compose file: https://github.com/bar-assistant/docker/blob/master/docker-compose.yml |
That's not the problem.. The container is running so all folder mappings are there and happy. It's not able to bind port 80. |
Since this is not your whole compose file, do you have only bar assistant services in it or any other. Maybe something else is already listening on the port 80. |
As per the ports section of my compose: |
If I remember, I might have had this exact same problem until I did what the developer suggests regarding using named storages. Did you actually try that? I know it doesn't sound related, but give it a shot. |
Tried this, however no different. |
Had to add: before it would work. Not happy with it as a solution though as that's now running as root. |
Yeah, that should not be needed to run. |
A synology NAS. DS918+ to be precise |
Any update on this, please? |
I can't do much without successfully recreating that error locally. Can you share your minimal docker compose file that creates this error. |
|
Here's my modified version of your compose file that works for me: version: "3"
services:
# Setup Meilisearch instance
meilisearch:
container_name: meilisearch
image: getmeili/meilisearch:v0.29
environment:
- MEILI_MASTER_KEY=masterKey
- MEILI_ENV=production
restart: unless-stopped
ports:
- 7778:7700
volumes:
- ./meili:/meili_data
networks:
- bar
# Redis for session and file cache
meili-redis:
image: redis
container_name: meili-redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
restart: unless-stopped
networks:
- bar
# Bar Assistant API
bar-assistant:
image: kmikus12/bar-assistant-server
container_name: bar-assistant
# user: 0:0
depends_on:
- meilisearch
- meili-redis
environment:
- APP_URL=http://localhost:8900
- MEILISEARCH_KEY=masterKey
- MEILISEARCH_HOST=http://localhost:7778
- REDIS_HOST=redis
- ALLOW_REGISTRATION=false
restart: unless-stopped
volumes:
- ./ba:/var/www/cocktails/storage
ports:
- 8900:80
networks:
- bar
# Bar Assistant Client
salt-rim:
image: kmikus12/salt-rim
container_name: salt-rim
depends_on:
- meilisearch
- bar-assistant
environment:
- API_URL=http://localhost:8900
restart: unless-stopped
ports:
- 8980:8080
networks:
- bar
##NETWORKS
networks:
bar:
external: true You probably have some specific server configuration, like maybe you are running docker in rootless mode, but you need root privileges to bind port 80. |
If I try to do anything other than root I get the following in bar-assistant: |
I have a feeling this has to do with Docker restrictions related to the synology OS. Just a guess, but I know Synology OS has a specific treatment of Docker |
Yes, that issue is related to #12 , you need to use named volumes to fix that. Port 80 is http port and is by default used by php-apache docker image. I have plans to refactor docker image to php-fpm and I will then change the main port, but I have no idea when will that be released. You could also fork the repository and build your own image with the changed port and see if that helps. |
I get the same error with the named volumes even when using anything but a root account. |
Do you have a vanilla Linux build you can test on? I still think this all just has to do with Synology being weird. |
I accept the fact that it's a Synology isn't likely to be helping, however on the grounds that I'm running 70 other containers, including linuxserver/swag (which uses port 80 and 443) and have run a plethora of other containers. I can't believe it's just down to it being Synology. |
New docker improvements are now available as a release candidate. If you are still having problems please open a new issue. |
My docker compose snippet for bar assistant:
Log:
Please can you advise where I've gone wrong? Tried both 1.0.5 and 1.0.4
The text was updated successfully, but these errors were encountered: