ese directus: use port mapping insted of network mode=host

This commit is contained in:
quitte 2024-05-19 11:25:15 +02:00
parent bb697f3a50
commit 616b3c64f7

View file

@ -7,7 +7,6 @@ in
sops.secrets."directus_env" = { }; sops.secrets."directus_env" = { };
environment.systemPackages = [ pkgs.nodejs_21 ]; environment.systemPackages = [ pkgs.nodejs_21 ];
virtualisation.oci-containers = { virtualisation.oci-containers = {
# backend = "docker";
containers.directus-ese = { containers.directus-ese = {
image = "directus/directus:latest"; image = "directus/directus:latest";
volumes = [ volumes = [
@ -15,7 +14,6 @@ in
"/srv/web/directus-ese/database:/directus/database" "/srv/web/directus-ese/database:/directus/database"
]; ];
ports = [ "127.0.0.1:8055:8055" ]; ports = [ "127.0.0.1:8055:8055" ];
extraOptions = [ "--network=host" ];
environment = { environment = {
"DB_CLIENT" = "pg"; "DB_CLIENT" = "pg";
"DB_HOST" = "localhost"; "DB_HOST" = "localhost";