Use named volume for postgres (#1076)

This commit is contained in:
Jamil
2022-10-28 17:31:32 -07:00
committed by GitHub
parent 45ef146532
commit 22fe7861e9
2 changed files with 7 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ services:
postgres:
image: postgres:15
volumes:
- ${FZ_INSTALL_DIR:-.}/postgres:/var/lib/postgresql/data
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${DATABASE_NAME:-firezone}
POSTGRES_USER: ${DATABASE_USER:-postgres}
@@ -70,3 +70,7 @@ services:
<<: *default-deploy
update_config:
order: stop-first
# Postgres needs a named volume to prevent perms issues on non-linux platforms
volumes:
postgres-data:

View File

@@ -12,8 +12,8 @@ This will irreversibly destroy ALL Firezone data and can't be undone.
<Tabs>
<TabItem label="Docker" value="docker" default>
For docker-based deployments, simply stop the firezone services, then
delete the working directory where you installed the Firezone docker
For docker-based deployments, simply bring the firezone services down,
then delete the working directory where you installed the Firezone docker
files (`$HOME/.firezone` by default):
```bash