diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 2823d1afc..0f5caf7d0 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -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: diff --git a/docs/docs/administer/uninstall.mdx b/docs/docs/administer/uninstall.mdx index 04ca12deb..7df89e065 100644 --- a/docs/docs/administer/uninstall.mdx +++ b/docs/docs/administer/uninstall.mdx @@ -12,8 +12,8 @@ This will irreversibly destroy ALL Firezone data and can't be undone. -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