From e3ea2cc5ef07c0a3a6eab16b93b11cd7c29c9eba Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Thu, 9 Oct 2025 10:16:33 -0800 Subject: [PATCH] set the tailscale hostname --- services/our/compose.production.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/services/our/compose.production.yaml b/services/our/compose.production.yaml index 7bb990b..fff22f4 100644 --- a/services/our/compose.production.yaml +++ b/services/our/compose.production.yaml @@ -67,6 +67,8 @@ services: pgadmin: image: dpage/pgadmin4:latest network_mode: service:tailscale-pgadmin + depends_on: + - tailscale-pgadmin environment: PGADMIN_LISTEN_ADDRESS: "0.0.0.0" PGADMIN_LISTEN_PORT: 5050 @@ -78,6 +80,12 @@ services: tailscale-pgadmin: image: tailscale/tailscale:latest + hostname: pgadmin + environment: + TS_EXTRA_ARGS: "--advertise-tags=tag:container --reset" + TS_SERVE_CONFIG: /config/pgadmin.json + TS_STATE_DIR: /var/lib/tailscale + TS_USERSPACE: "false" volumes: - /mnt/vfs/futureporn/tailscale/state:/var/lib/tailscale - /mnt/vfs/futureporn/tailscale/config:/config @@ -86,11 +94,6 @@ services: cap_add: - net_admin restart: unless-stopped - environment: - TS_EXTRA_ARGS: "--advertise-tags=tag:container --reset" - TS_SERVE_CONFIG: /config/pgadmin.json - TS_STATE_DIR: /var/lib/tailscale - TS_USERSPACE: "false" volumes: pgdata: