quadlets: app alias=app, nginx proxy_pass auf app, sleep entfernt
- visitcounter-app.container: Network alias=app damit nginx den Upstream findet - nginx-default.conf: proxy_pass http://app:8080 (gleich wie Compose) - visitcounter-proxy.container: ExecStartPre sleep entfernt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
124fc207f9
commit
83883e43eb
3 changed files with 2 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ server {
|
|||
listen 80;
|
||||
|
||||
location / {
|
||||
proxy_pass http://systemd-visitcounter-app:8080;
|
||||
proxy_pass http://app:8080;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Environment=DB_HOST=systemd-visitcounter-db
|
|||
Environment=DB_NAME=visitcount
|
||||
Environment=DB_USER=app
|
||||
Environment=DB_PASSWORD=secret
|
||||
Network=visitcounter-app.network
|
||||
Network=visitcounter-app.network:alias=app
|
||||
|
||||
[Unit]
|
||||
After=visitcounter-db.service
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ Network=visitcounter-app.network
|
|||
After=visitcounter-app.service
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/bin/sleep 3
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue