27 lines
731 B
Nix
27 lines
731 B
Nix
![]() |
{config, ...}: {
|
||
|
virtualisation.oci-containers.containers."ghost" = {
|
||
|
image = "docker.io/ghost:5.89";
|
||
|
environmentFiles = [config.age.secrets.ghost-env.path];
|
||
|
ports = ["3002:2368"];
|
||
|
volumes = ["ghost_data:/var/lib/ghost/content"];
|
||
|
extraOptions = ["--add-host=mysql:10.89.0.1" "--ip=10.89.0.11" "--network=web"];
|
||
|
};
|
||
|
# Traefik configuration specific to ghost
|
||
|
services.traefik.dynamicConfigOptions.http = {
|
||
|
services.ghost.loadBalancer.servers = [
|
||
|
{
|
||
|
url = "http://localhost:3002/";
|
||
|
}
|
||
|
];
|
||
|
|
||
|
routers.ghost = {
|
||
|
rule = "Host(`www.m3tam3re.com`)";
|
||
|
tls = {
|
||
|
certResolver = "godaddy";
|
||
|
};
|
||
|
service = "ghost";
|
||
|
entrypoints = "websecure";
|
||
|
};
|
||
|
};
|
||
|
}
|