Minor tweaks to the Caddy compose file (#689)

Changes made with some justification, in order of commits:
- removed port mapping for `actual-server` service since we're using
Caddy as the reverse proxy, similar to how there's no port mapping for
the Traefik example
- minor consistency changes by referring to the Traefik example:
  - moved `image: caddy:alpine` to the top
  - add restart policy
  - swapped one inconsistent single-quoted port mapping to double quotes
This commit is contained in:
azrikahar
2025-05-09 22:19:56 +08:00
committed by GitHub
parent 4184496010
commit 9cc802cd28

View File

@@ -20,22 +20,21 @@ Below is an example `Caddyfile` that you can use to configure Caddy and Actual S
```yaml title="docker-compose.yml"
services:
caddy:
container_name: caddy
image: caddy:alpine
container_name: caddy
restart: unless-stopped
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./caddy/data:/data
- ./caddy/config:/config
ports:
- "80:80"
- '443:443'
- "443:443"
actual-server:
image: actualbudget/actual-server:latest
container_name: actual_server
restart: unless-stopped
ports:
- '5006:5006'
volumes:
- ./actual-data:/data
```