Skip to content

Commit 3e8be73

Browse files
committed
Update bluegreen docs
1 parent 6835fc4 commit 3e8be73

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/bluegreen.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,21 @@ caddy:
3333
CADDY_SITE_ADDRESS: :80
3434
```
3535

36+
### Move Postgres to its own unique container
37+
38+
Running two separate PostgreSQL instances and having them both simultaneously
39+
access the same data directory within that shared volume is not recommended and
40+
can lead to data corruption.
41+
42+
So we need to move Postgres out of the compose file and start it separately.
43+
3644
### Share volumes between the stacks
3745

38-
To share data between the two stacks (database, uploads, etc.), give volumes
39-
explicit names:
46+
To share data between the two stacks (uploads, etc.), give volumes explicit
47+
names:
4048

4149
```yaml title="compose.yaml"
4250
volumes:
43-
postgres_data:
44-
name: postgres-data
4551
user_data:
4652
name: user-data
4753
```

0 commit comments

Comments
 (0)