Created
December 6, 2022 09:13
-
-
Save drupol/354bb2bb65e5222155d4c39bbe7985a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
config.virtualisation.oci-containers.containers = { | |
claper = { | |
image = "ghcr.io/claperco/claper:main"; | |
ports = [ | |
"4000:4000" | |
]; | |
environment = { | |
DATABASE_URL = "postgres://claper:claper@<ip>:5432/claper"; | |
SECRET_KEY_BASE = "<secret>"; | |
ENDPOINT_HOST = "<hostname>"; | |
}; | |
dependsOn = [ "db" ]; | |
volumes = [ | |
"uploads:/app/priv/static/uploads" | |
]; | |
}; | |
db = { | |
image = "postgres:9"; | |
ports = [ | |
"5432:5432" | |
]; | |
environment = { | |
POSTGRES_PASSWORD = "claper"; | |
POSTGRES_USER = "claper"; | |
POSTGRES_DB = "claper"; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment