psweb
August 18, 2021, 12:22pm
1
Hi All, just trying to get some input from other peoples experiences.
Currently inside Wappler with Digital Ocean I can create a new docker machine, add a database, add portainer as well as traefik
All 4 create their very own container, and I can get to portainer and traefik via a subdomain.
I have a website where I would like to create a few subdomains all on a single docker machine, so domain example.com needs to have
example.com
accounts.example.com
admin.example.com
portainer.example.com
traefik.example.com
as well as a single database that all subdomains as well as the base domain can access.
Does anyone have any idea how i could configure something like this to work.
Hey Paul, this thread should help
Thanks @bpj for a working solution.
For a newly created docker container, the modifications were:
traefik.http.routers.docker-cert-test__stg_web.rule=Host(`domain1.com`, `domain2.com`)
- >-
traefik.http.routers.docker-cert-test__stg_web-secure.entrypoints=websecure
- >-
traefik.http.routers.docker-cert-test__stg_web-secure.rule=Host(`domain1.com`, `domain2.com`)
Initial tests have this working perfectly after re-deploying the container. Naturally Wappler d…
1 Like
psweb
August 18, 2021, 3:29pm
3
Thanks Ken, going to give this a try.
It’s working well for a client…just remember that the yaml will be overwritten if you go into the target and save changes.
1 Like