mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-03-10 04:59:06 +01:00
Use proper docker volumes in docker compose
This commit is contained in:
parent
b8f4ba6d79
commit
abe22b6dda
@ -67,11 +67,9 @@ Configuration for Production Use
|
||||
|
||||
1. Update the `Caddyfile` to replace the `localhost` URL with your desired production URL.
|
||||
|
||||
2. Modify the `docker-compose` file to adjust the paths. By default, files are stored in `/tmp`.
|
||||
2. For custom configurations, bindmount a `local_settings.py` into `/opt/django-helpdesk/standalone/config/local_settings.py`.
|
||||
|
||||
3. For custom configurations, bindmount a `local_settings.py` into `/opt/django-helpdesk/standalone/config/local_settings.py`.
|
||||
|
||||
4. To customize the logo in the top-left corner of the helpdesk:
|
||||
3. To customize the logo in the top-left corner of the helpdesk:
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
|
@ -1,12 +1,20 @@
|
||||
version: '2'
|
||||
|
||||
# Define named volumes
|
||||
volumes:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
helpdesk_data:
|
||||
postgres_data:
|
||||
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:2
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /tmp/data/caddy/data:/data
|
||||
- /tmp/data/caddy/config:/config
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:r
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
@ -15,8 +23,8 @@ services:
|
||||
image: djangohelpdesk/standalone
|
||||
user: root
|
||||
volumes:
|
||||
- /tmp/django-helpdesk-data:/data/
|
||||
- ./custom_navigation_header.html:/opt/django-helpdesk/helpdesk/templates/helpdesk/custom_navigation_header.html:r
|
||||
- helpdesk_data:/data
|
||||
- ./custom_navigation_header.html:/opt/django-helpdesk/helpdesk/templates/helpdesk/custom_navigation_header.html:ro
|
||||
env_file: docker.env
|
||||
depends_on:
|
||||
- postgres
|
||||
@ -24,5 +32,5 @@ services:
|
||||
postgres:
|
||||
image: postgres:12-bullseye
|
||||
volumes:
|
||||
- ./db:/var/lib/postgresql/data
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
env_file: docker.env
|
||||
|
Loading…
Reference in New Issue
Block a user