-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker.nix
42 lines (38 loc) · 953 Bytes
/
docker.nix
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
42
{ config, pkgs, ... }:
{
virtualisation.oci-containers.containers = {
furtherance-sync = {
image = "ghcr.io/unobserved-io/furtherance-sync:latest";
ports = [
"8662:8662"
];
environment = {
POSTGRES_PASSWORD = "dbpassword";
POSTGRES_USER = "dbuser";
POSTGRES_DATABASE = "furtherance";
POSTGRES_PORT = "5432";
POSTGRES_HOST = "furtherance-db";
};
dependsOn = [ "furtherance-db" ];
extraOptions = [
"--network=furtherance-net"
];
autoStart = true;
};
furtherance-db = {
image = "postgres:17";
environment = {
POSTGRES_DB = "furtherance";
POSTGRES_USER = "dbuser";
POSTGRES_PASSWORD = "dbpassword";
};
volumes = [
"furtherance-data:/var/lib/postgresql/data"
];
extraOptions = [
"--network=furtherance-net"
];
autoStart = true;
};
};
}