Map volumes to persistent paths in example compose files

This commit is contained in:
he3als 2024-03-26 11:41:14 +00:00
parent d40f9e06fc
commit 7f37c6dbe5
No known key found for this signature in database
GPG key ID: 3C5570F6D3D6D594
3 changed files with 8 additions and 8 deletions

View file

@ -66,8 +66,8 @@ services:
- '81:81' - '81:81'
- '443:443' - '443:443'
volumes: volumes:
- ./data:/data - /srv/nginx-proxy-manager/data:/data
- ./letsencrypt:/etc/letsencrypt - /srv/nginx-proxy-manager/letsencrypt:/etc/letsencrypt
``` ```
This is the bare minimum configuration required. See the [documentation](https://nginxproxymanager.com/setup/) for more. This is the bare minimum configuration required. See the [documentation](https://nginxproxymanager.com/setup/) for more.

View file

@ -121,8 +121,8 @@ services:
# Uncomment this if IPv6 is not enabled on your host # Uncomment this if IPv6 is not enabled on your host
# DISABLE_IPV6: 'true' # DISABLE_IPV6: 'true'
volumes: volumes:
- ./data:/data - /srv/nginx-proxy-manager/data:/data
- ./letsencrypt:/etc/letsencrypt - /srv/nginx-proxy-manager/letsencrypt:/etc/letsencrypt
secrets: secrets:
- MYSQL_PWD - MYSQL_PWD
depends_on: depends_on:

View file

@ -28,8 +28,8 @@ services:
# DISABLE_IPV6: 'true' # DISABLE_IPV6: 'true'
volumes: volumes:
- ./data:/data - /srv/nginx-proxy-manager/data:/data
- ./letsencrypt:/etc/letsencrypt - /srv/nginx-proxy-manager/letsencrypt:/etc/letsencrypt
``` ```
Then: Then:
@ -73,8 +73,8 @@ services:
# Uncomment this if IPv6 is not enabled on your host # Uncomment this if IPv6 is not enabled on your host
# DISABLE_IPV6: 'true' # DISABLE_IPV6: 'true'
volumes: volumes:
- ./data:/data - /srv/nginx-proxy-manager/data:/data
- ./letsencrypt:/etc/letsencrypt - /srv/nginx-proxy-manager/letsencrypt:/etc/letsencrypt
depends_on: depends_on:
- db - db