Attach Dokploy compose service to proxy network
Some checks are pending
Build / build (push) Waiting to run
Some checks are pending
Build / build (push) Waiting to run
This commit is contained in:
parent
80c51bdfea
commit
b3cd8a8914
2 changed files with 18 additions and 0 deletions
|
|
@ -72,6 +72,8 @@ Use the Docker Compose deployment path.
|
||||||
|
|
||||||
The container builds all seven sites with `npm run build`. Nginx reads the `Host` header and serves the matching directory using `deploy/nginx.conf`.
|
The container builds all seven sites with `npm run build`. Nginx reads the `Host` header and serves the matching directory using `deploy/nginx.conf`.
|
||||||
|
|
||||||
|
The Compose app attaches to Dokploy's external `dokploy-network` so Dokploy's proxy can reach the container. If your Dokploy installation uses a different proxy network name, update `docker-compose.yml`.
|
||||||
|
|
||||||
## DNS
|
## DNS
|
||||||
|
|
||||||
Point these DNS records at the Dokploy host:
|
Point these DNS records at the Dokploy host:
|
||||||
|
|
@ -100,3 +102,13 @@ curl -I https://puzzles.neeldhara.blog/rss.xml
|
||||||
```
|
```
|
||||||
|
|
||||||
Expected result: `200 OK` for each.
|
Expected result: `200 OK` for each.
|
||||||
|
|
||||||
|
## Bad Gateway Checklist
|
||||||
|
|
||||||
|
If Dokploy shows `Bad Gateway`:
|
||||||
|
|
||||||
|
1. Confirm the app deployment finished successfully and the `blogs` container is running.
|
||||||
|
2. In the domain settings, make sure each domain points to service `blogs` and container port `80`.
|
||||||
|
3. Confirm the service is attached to `dokploy-network`.
|
||||||
|
4. Check the container logs. Nginx should stay in the foreground; if it exits, the logs should show the config error.
|
||||||
|
5. Redeploy after any Compose change so Dokploy recreates the container/network attachment.
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,15 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1/nginx-health"]
|
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1/nginx-health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
|
networks:
|
||||||
|
dokploy-network:
|
||||||
|
external: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue