forked from community-valheim-tools/valheim-server-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalheim.nomad
More file actions
41 lines (39 loc) · 770 Bytes
/
valheim.nomad
File metadata and controls
41 lines (39 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
job "valheim" {
datacenters = ["dc1"]
group "valheim" {
network {
mode = "bridge"
port "game1" {
static = 2456
to = 2456
}
port "game2" {
static = 2457
to = 2457
}
port "supervisor" {
static = 9001
to = 9001
}
}
task "valheim-server" {
driver = "docker"
env {
SERVER_NAME = "Testserver_Nomad"
WORLD_NAME = "testworld"
SERVER_PASS = "secret"
}
config {
image = "ghcr.io/lloesche/valheim-server"
volumes = [
"/var/lib/valheim/config:/config",
"/var/lib/valheim/data:/opt/valheim"
]
}
resources {
cpu = 6000
memory = 4096
}
}
}
}