Skip to content

Commit

Permalink
Standardize database naming in Docker env config
Browse files Browse the repository at this point in the history
Updated the DATABASE_URL environment variable to dynamically use the
specific `linkwarden_name` value rather than a hardcoded database name.
  • Loading branch information
RaneyDazed committed Jan 29, 2024
1 parent d3818bf commit edab47c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/linkwarden/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ linkwarden_docker_envs_default:
STORAGE_FOLDER: "/data"
NEXTAUTH_SECRET: "{{ linkwarden_secret_key.stdout }}"
NEXTAUTH_URL: "{{ linkwarden_web_url }}/api/v1/auth"
DATABASE_URL: "postgresql://{{ user_name }}:{{ postgres_docker_env_password }}@{{ linkwarden_name }}-postgres:5432/saltbox"
DATABASE_URL: "postgresql://{{ user_name }}:{{ postgres_docker_env_password }}@{{ linkwarden_name }}-postgres:5432/{{ linkwarden_name }}"
linkwarden_docker_envs_custom: {}
linkwarden_docker_envs: "{{ linkwarden_docker_envs_default
| combine(linkwarden_docker_envs_custom) }}"
Expand Down

0 comments on commit edab47c

Please sign in to comment.