bar-assistant: Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80

My docker compose snippet for bar assistant:

  bar-assistant:
    image: kmikus12/bar-assistant-server:v1.0.4
    container_name: bar-assistant
    depends_on:
      - meilisearch
      - meili-redis
    environment:
      - APP_URL=http://<IP Address>:8900
      - MEILISEARCH_KEY=<$MEILI_MASTER_KEY>
      - MEILISEARCH_HOST=http://<IP Adddress>:7700
      - REDIS_HOST=redis
    restart: unless-stopped
    volumes:
      - /volume2/docker/bar/ba:/var/www/cocktails/storage
    ports:
      - 8900:80

Log:

AH00015: Unable to open logs
Updating search index settings...
Syncing cocktails and ingredients to meilisearch...
Adding routes and config to cache...
   INFO  Configuration cached successfully.  
   INFO  Routes cached successfully.  
Application ready!
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

Please can you advise where I’ve gone wrong? Tried both 1.0.5 and 1.0.4

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (7 by maintainers)

Most upvoted comments

Possibly related to #12

Try switching to named volumes, change the following:

- /volume2/docker/bar/ba:/var/www/cocktails/storage

to

- ba-storage:/var/www/cocktails/storage

And add the following at the end of the file

volumes:
  ba-storage:

You can refrence the following compose file: https://github.com/bar-assistant/docker/blob/master/docker-compose.yml