nix-configurations/hosts/lkk-nix-1/services/containers/wordpress.nix

15 lines
452 B
Nix
Raw Normal View History

2023-02-05 13:36:38 +00:00
{ config, outputs, ... }: {
virtualisation.oci-containers.containers."lanakk_blog" = {
image = "docker.io/wordpress";
environment = {
WORDPRESS_DB_HOST = "mysql";
WORDPRESS_DB_USER = "wp";
WORDPRESS_DB_PASSWORD = "wp";
WORDPRESS_DB_NAME = "lanakk_blog";
};
ports = [ "3002:80" ];
volumes = [ "lanakk_blog_data:/var/www/html" ];
extraOptions = [ "--add-host=mysql:10.88.0.1" "--ip=10.88.0.12" ];
2023-02-05 13:36:38 +00:00
};
}