1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-04 01:24:09 +02:00

allow pinning instances

This commit is contained in:
Robin Appelman 2022-07-21 14:46:39 +02:00
commit 81695aee4b
6 changed files with 93 additions and 14 deletions

View file

@ -26,6 +26,8 @@ pub enum PhpVersion {
Php73Dbg,
}
pub const PHP_MEMORY_LIMIT: i64 = 2 * 1024 * 1024 * 1024;
impl FromStr for PhpVersion {
type Err = ();
@ -98,7 +100,7 @@ impl PhpVersion {
network_mode: Some(network.to_string()),
binds: Some(volumes),
extra_hosts: Some(vec![format!("hazehost:{}", host)]),
memory: Some(2 * 1024 * 1024 * 1024),
memory: Some(PHP_MEMORY_LIMIT),
nano_cpus: Some(2_000_000_000),
..Default::default()
}),