openhab-cloud: Docker-compose not working with actual config ?
Hi,
doing the tests I was not able to make the services work properly through docker with docker-compose. With actual docker-compose.yaml (my actual config is ubuntu 18.04 and docker 18.09.1) mongodb not working because say me missing /data/db (even if i create dir as suggested) and nginx proxy not forward to app-1 because it’s volume not shared.
Now with the following config seems to work, if it can help someone… :
version: '3'
services:
app-1:
container_name: app-1
image: docker.io/openhab/openhabcloud-app
working_dir: /opt/openhabcloud
volumes:
- app-1:/opt/openhabcloud
networks:
- ohcloud-network
links:
- mongodb
- redis
ports:
- "3000"
depends_on:
- mongodb
- redis
restart: always
mongodb:
container_name: mongodb
image: bitnami/mongodb:latest
ports:
- "27017:27017"
# command: mongod --smallfiles --bind_ip_all
networks:
- ohcloud-network
volumes:
- /tmp:/bitnami # change /tmp to data dir what you want
# - /data/configdb
restart: always
redis:
container_name: redis
image: bitnami/redis:latest
networks:
- ohcloud-network
ports:
- "6379"
environment:
- REDIS_PASSWORD=123_openHAB
restart: always
nginx:
container_name: nginx
image: docker.io/openhab/openhabcloud-nginx
volumes:
- app-1:/opt/openhabcloud
networks:
- ohcloud-network
ports:
- "80:8081"
- "443:8443"
links:
- app-1:app-1
volumes:
app-1:
networks:
ohcloud-network:
driver: bridge
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 22 (14 by maintainers)
@marziman did you have a chance to look at PR #276 ? Any issues or concerns?
I have merged #276 , thanks for the contribution and apologies for not reviewing sooner.
I can try and take a look. I don’t actually use the docker functionality, that was @marziman contribution and i have not looked at it in a long time.
I also found the dockercompose broken and updated with my own. I used Traefik as a proxy instead of nginx though as it provides Let’s Encrypt certs out of the box for HTTPS.
Also - is it just me, or has the docker.io/openhab/openhabcloud-app not been rebuilt on docker hub for a year? So, it’s fairly out of date now unless you build it yourself right? @marziman or @digitaldan can you setup the webhooks to trigger docker hub rebuilds for new tags and
latest
builds formaster
?I will recheck this. Strange, as I had it running not long ago. But anyhow @lucacalcaterra thanks for the Feedback.
BR Mehmet