19 Commits

Author SHA1 Message Date
Manav Rathi
a4ab3168ad Add note 2025-03-21 16:59:10 +05:30
Manav Rathi
938e2dcadb Tweak 2025-03-20 10:50:31 +05:30
Manav Rathi
970c1229c4 Use default network 2025-03-20 09:37:53 +05:30
Manav Rathi
d943586faf Remove extra volume
This is an appendage from when this compose file was used for a test network,
and not relevant to self hosting, at least not in the starter sample.
2025-03-20 08:04:05 +05:30
Manav Rathi
27fe549e15 Shorten 2025-03-20 08:02:55 +05:30
Manav Rathi
c56801c024 Notes 2025-03-19 20:42:44 +05:30
Manav Rathi
551d099c4a Reduce default ports 2025-03-19 20:35:47 +05:30
Manav Rathi
d615614985 Stop exposing postgres externally entirely
Museum can directly access it via the shared network
2025-03-19 20:29:14 +05:30
Manav Rathi
d80b220ad4 Avoid using default postgres port 2025-03-19 20:25:53 +05:30
Manav Rathi
4cdc72bc29 Move config inline 2025-03-19 20:09:23 +05:30
Manav Rathi
c329b30e49 [server] Remove extra container by using a post_start lifecycle hook 2025-03-19 19:50:55 +05:30
Manav Rathi
a4bc596b66 Inline 2025-03-19 18:25:41 +05:30
mngshm
1eddf1f75a fix 2025-03-03 19:55:20 +05:30
mngshm
0940b8b3be [server] Instructions to tweak compose 2025-03-03 19:53:59 +05:30
Zayd
0fe23817cc fixes minor typo in docker-compose comments 2024-12-05 15:04:33 -08:00
Manav Rathi
6ed0ad806e pg 15 2024-09-19 10:30:58 +05:30
Manav Rathi
0f1d45587e [server] Reduce DB healthcheck interval in starter Docker compose template
The museum container depends on the postgres container being up and the DB being
ready to accept connections. To enforce this dependency, we use the healthcheck
attribute.

See: https://docs.docker.com/compose/startup-order/

The value of the healthcheck interval was set to 1s since the default (30s)
caused each `docker compose up` to require at least 30 seconds on each startup,
which was prohibitive. The downside is that the healthchecks continue to run
beyond the startup phase too, and for small VMs, this caused a lot of
unnecessary CPU usage.

Thankfully, now Docker has a new option for a different healthcheck during the
start phase:

> start interval is the time between health checks during the start period. This
  option requires Docker Engine version 25.0 or later.

They were added in Docker compose 2.20.2, released an year ago (2023-07-19).

https://docs.docker.com/compose/release-notes/#2202
2024-06-23 09:22:51 +05:30
Manav Rathi
2b379640ca Allow billing plans to be mounted into the Docker container if needed 2024-03-28 13:07:43 +05:30
Neeraj Gupta
531bb344fe Import museum 2024-03-01 13:37:01 +05:30