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" ];
|
2023-02-13 16:09:49 +00:00
|
|
|
extraOptions = [ "--add-host=mysql:10.88.0.1" "--ip=10.88.0.12" ];
|
2023-02-05 13:36:38 +00:00
|
|
|
};
|
|
|
|
}
|