Commit 7338d19
committed
fix(nginx): ensure nginx starts only after nextcloud is up
Use docker-compose depends_on to guarantee nginx starts after nextcloud
service is initialized. This removes the need for runtime DNS resolution
and simplifies the nginx configuration:
- Remove 'resolver' directive and 'zone' allocations
- Simplify upstream blocks to use direct server references
- Use depends_on: [nextcloud] instead of dynamic resolution
- Keep eurooffice upstream but remove it from dependency chain (optional service)
This ensures nginx starts with a resolvable upstream at startup, preventing
any potential DNS resolution errors during container initialization.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>1 parent b6d4b7c commit 7338d19
2 files changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | 31 | | |
34 | | - | |
35 | | - | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | | - | |
40 | | - | |
| 36 | + | |
41 | 37 | | |
42 | 38 | | |
43 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
0 commit comments