mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-25 13:18:47 +00:00
Added onedev docker compose
This commit is contained in:
@@ -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:
|
||||||
@@ -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,
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user