Spaces:
Runtime error
Runtime error
akashyadav758 Claude Opus 4.8 (1M context) commited on
Commit ·
321bbb7
1
Parent(s): 69c2cb9
Persist Chrome profile via Docker volume for self-hosting
Browse filesOn a self-hosted box the profile (cookies/logins) survives restarts with a
plain named volume mounted at /home/chrome/data — no Postgres needed. This
is the self-host equivalent of the HF Postgres-snapshot path.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- docker-compose.yml +7 -0
docker-compose.yml
CHANGED
|
@@ -16,6 +16,8 @@ services:
|
|
| 16 |
platform: linux/amd64
|
| 17 |
ports:
|
| 18 |
- "3001:3001" # 3-tab monitor UI (also the only published port)
|
|
|
|
|
|
|
| 19 |
restart: unless-stopped
|
| 20 |
|
| 21 |
chatgpt:
|
|
@@ -47,3 +49,8 @@ services:
|
|
| 47 |
depends_on:
|
| 48 |
- chrome
|
| 49 |
restart: unless-stopped
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
platform: linux/amd64
|
| 17 |
ports:
|
| 18 |
- "3001:3001" # 3-tab monitor UI (also the only published port)
|
| 19 |
+
volumes:
|
| 20 |
+
- chrome-profile:/home/chrome/data # persists cookies/logins across restarts
|
| 21 |
restart: unless-stopped
|
| 22 |
|
| 23 |
chatgpt:
|
|
|
|
| 49 |
depends_on:
|
| 50 |
- chrome
|
| 51 |
restart: unless-stopped
|
| 52 |
+
|
| 53 |
+
# Named volume keeps the Chrome profile (logins/cookies) across `docker compose down/up`
|
| 54 |
+
# and host reboots — the self-host equivalent of HF persistent storage, no Postgres needed.
|
| 55 |
+
volumes:
|
| 56 |
+
chrome-profile:
|