Remove database mount and set proper .env settings
This commit is contained in:
@@ -56,7 +56,7 @@ resource "local_file" "pelican_caddy_config_file" {
|
||||
}
|
||||
|
||||
resource "local_file" "pelican_config_file" {
|
||||
content = local.caddyfile_content
|
||||
content = local.pelican_env_file
|
||||
filename = "${var.volume_path}/${local.container_name}/.env"
|
||||
}
|
||||
|
||||
@@ -83,11 +83,6 @@ module "pelican-panel" {
|
||||
container_path = "/etc/caddy/Caddyfile"
|
||||
read_only = true
|
||||
},
|
||||
{
|
||||
host_path = "${var.volume_path}/${local.container_name}/database.sqlite"
|
||||
container_path = "/pelican-data/database/database.sqlite"
|
||||
read_only = false
|
||||
},
|
||||
{
|
||||
host_path = "${var.volume_path}/${local.container_name}/.env"
|
||||
container_path = "/pelican-data/.env"
|
||||
|
||||
Reference in New Issue
Block a user