mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
Use named volume for postgres (#1076)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user