2020-07-12 18:32:19 +01:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
networked-docker-containers = {
|
|
|
|
gitea = {
|
|
|
|
image = "gitea/gitea:latest";
|
|
|
|
ports = [
|
|
|
|
"2221:2221"
|
|
|
|
];
|
|
|
|
volumes = [
|
|
|
|
"gitea:/data:Z"
|
|
|
|
"/etc/timezone:/etc/timezone:ro"
|
|
|
|
"/etc/localtime:/etc/localtime:ro"
|
|
|
|
];
|
|
|
|
environment = {
|
|
|
|
VIRTUAL_PORT = "3000";
|
|
|
|
VIRTUAL_HOST = "gitea.tlater.net";
|
|
|
|
LETSENCRYPT_HOST = "gitea.tlater.net";
|
|
|
|
|
|
|
|
DB_TYPE = "postgres";
|
|
|
|
DB_HOST = "gitea-postgres:5432";
|
|
|
|
DB_NAME = "gitea";
|
|
|
|
DB_USER = "gitea";
|
|
|
|
DB_PASSWD = "/qNDDK9WCMuubfA7D8DFwfl9T+Gy2IMDvPhiNpcxZjY=";
|
|
|
|
|
|
|
|
RUN_MODE = "prod";
|
|
|
|
DOMAIN = "gitea.tlater.net";
|
|
|
|
SSH_PORT = "2221";
|
|
|
|
};
|
|
|
|
networks = [
|
|
|
|
"webproxy"
|
|
|
|
"gitea"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
gitea-postgres = {
|
|
|
|
image = "postgres:alpine";
|
|
|
|
environment = {
|
|
|
|
POSTGRES_DB = "gitea";
|
|
|
|
POSTGRES_USER = "gitea";
|
|
|
|
POSTGRES_PASSWORD = "/qNDDK9WCMuubfA7D8DFwfl9T+Gy2IMDvPhiNpcxZjY=";
|
|
|
|
};
|
|
|
|
volumes = [
|
2021-01-19 01:00:31 +00:00
|
|
|
"gitea-db-data-new:/var/lib/postgresql/data"
|
2020-07-12 18:32:19 +01:00
|
|
|
];
|
|
|
|
networks = [
|
|
|
|
"gitea"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|