ese directus: use port mapping insted of network mode=host
This commit is contained in:
parent
bb697f3a50
commit
616b3c64f7
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue