I have a local Docker machine with just a SQLite database and redis enabled. It works fine locally.
I made a new target with type Docker and connected it to a cloud server on DigitalOcean.
Set the database to a MySQL server from a DigitalOcean database cluster.
When I try to deploy to my live server I get
service "redis" refers to undefined network proxy: invalid compose project
Error Launching Services!
Am I doing something wrong or does Redis not work with the setup I have?
Still not working. I also just tried turning off redis in the settings for the live target and deploying but I still got the redis error even with it turned off.
I tried it and it seems to work, wondering if someone who knows about Docker more could confirm it is a valid fix. Also want to make sure Wappler won’t overwrite the changes or anything like that. Or if there is something in Wappler I need to change rather than edit the file?
@Apple sorry to bother you but I know you know about this stuff and was hoping you could take a quick look.
The fix you applied is not a valid fix - Traefik wouldn’t be able to access your web service as it’s not on the same network as Traefik. The correct would be (as copied from an existing docker-compose of a Wappler project):
Would I change that under networks at the very bottom and then change the
networks: -my network
under both redis and web to be wappler-compose_proxy ?
I also earlier tried deleting the docker compose file and let Wappler make a new one but still had the problem. I made a new project and it let me publish with redis on, so it makes me think I have a problem somewhere in my project. But I don’t even know how I would have changed any network settings.
Yes, actually “wappler-compose_proxy” is aliased to “proxy”, so in networks you’d just use “proxy”, e.g.:
web:
networks:
proxy: ~
Though as you don’t have Traefik installed, the “wappler-compose_proxy” might not exist in first place, so you’d still get an error
Unfortunately, I’m not inside into the specifics of the way Wappler generates docker-compose files, so Teodor would probably the best person to take a look at this while George is away
Finally got this figured out! Your comment on not having Traefik installed pointed me in the right direction.
I set this project up on Digital Ocean initially and installed Traefik, then I messed around with hosting on Railway but decided to switch back to Digital Ocean to use Redis. The original settings for Traefik and Portainer were still enabled. I thought I deleted them, but they got added back or can’t be removed from the Wappler project or something.
So rather than just upload to the Digital Ocean IP I went ahead and setup the domain with Traefik and it is all online and Redis says it upload fine.