Better dev docker containers, Simpler production docker file, caddy for ssl
1. New docker files
2. All use alpine instead of debian for smaller images.
3. A make file is include for easier server restarts. `make dev-restart-server`
4. The frontend container uses chokidar to rebuild after changes have been made automatically.
---
I tried to keep the changes scoped to just docker.
---
- [x] Tested `make dev-start` docker
- [x] Tested example raw linux
- [x] Tested example ssl caddy
> Notes: example ssl caddy
>
> Because this version of the docker image isn't on docker, it's a chicken or egg issue.
> So to test it I run the old image, but need to change the Caddyfile to:
> ```
> server40.vps.webdock.cloud {
> respond "hi"
> }
>
> server40.vps.webdock.cloud:7000 {
> reverse_proxy http://app:7000
> }
> ```
>
> And add `- 7000:7000` to `services` -> `caddy` -> `ports`
>
> I tested this on a vps with ports 80 443 7000 all available, caddy successfully automatically 🧙 sets up https
合并状态:未合并 关闭于 2025-02-05 14 条评论