-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathdocker-compose.windows.yml
More file actions
28 lines (26 loc) · 979 Bytes
/
docker-compose.windows.yml
File metadata and controls
28 lines (26 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# docker-compose.windows.yml
#
# Windows / WSL2 override for Nostream.
#
# On Windows (including WSL2), Docker bind-mounts to host paths can cause
# PostgreSQL permission errors. This override replaces the bind-mount for
# PostgreSQL data with a named Docker volume, which is managed entirely
# by the Docker engine and avoids those issues.
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.windows.yml up --build
#
# Or set COMPOSE_FILE in your .env:
# COMPOSE_FILE=docker-compose.yml:docker-compose.windows.yml
#
# WARNING: If you previously ran Nostream with the default docker-compose.yml
# your data is in .nostr/data/ on the host. Before switching to this file,
# migrate your data or it will not be accessible from the named volume.
services:
nostream-db:
volumes:
- nostream-db-data:/var/lib/postgresql/data
- ${PWD}/.nostr/db-logs:/var/log/postgresql
- ${PWD}/postgresql.conf:/postgresql.conf
volumes:
nostream-db-data: