Skip to content

Commit

Permalink
Fix small mistakes in docker-compose and caddy file
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Nov 7, 2024
1 parent 590bf8b commit 367f6fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Caddyfile.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
on_demand_tls {
ask http://127.0.0.1:8081/check_domain
ask http://gohunt:8081/check_domain
}

}
Expand All @@ -10,7 +10,7 @@
output stdout
}

reverse_proxy 127.0.0.1:8081
reverse_proxy gohunt:8081
}

*.{$DOMAIN} {
Expand All @@ -24,5 +24,5 @@
on_demand
}

reverse_proxy 127.0.0.1:8081
reverse_proxy gohunt:8081
}
2 changes: 1 addition & 1 deletion docker-compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
- Database.Port=5432
- Database.User=gohunt
- Database.DBname=gohunt
- Database.SSLmode=disabled
- Database.SSLmode=disable
- Database.Password=gohunt
ports:
- 8081:8081
Expand Down
8 changes: 5 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ services:
- db-data:/var/lib/postgresql/data

gohunt:
depends_on: postgres
depends_on:
- postgres
restart: on-failure
image: ghcr.io/nhas/gohunt:main
environment:
Expand All @@ -26,11 +27,12 @@ services:
- Database.Port=5432
- Database.User=gohunt
- Database.DBname=gohunt
- Database.SSLmode=disabled
- Database.SSLmode=disable
- Database.Password=${DB_PASSWORD}

caddy:
depends_on: gohunt
depends_on:
- gohunt
restart: on-failure
image: caddy:2
ports:
Expand Down

0 comments on commit 367f6fe

Please sign in to comment.