Added onedev docker compose

This commit is contained in:
Mohab Gabber 2024-12-17 17:23:26 +02:00
parent 829aa2a63c
commit 536507377d
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,13 @@
---
services:
onedev:
image: 1dev/server:11.6.6
container_name: onedev
restart: always
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "onedev-data:/opt/onedev"
volumes:
onedev-data:

View File

@ -0,0 +1,22 @@
import {
type DomainSchema,
type Schema,
type Template,
generateRandomDomain,
} from "../utils";
export function generate(schema: Schema): Template {
const randomDomain = generateRandomDomain(schema);
const domains: DomainSchema[] = [
{
host: randomDomain,
port: 6610,
serviceName: "onedev",
},
];
return {
domains,
};
}