diff --git a/public/svgs/onedev.svg b/public/svgs/onedev.svg new file mode 100644 index 000000000..fb9c9c060 --- /dev/null +++ b/public/svgs/onedev.svg @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + diff --git a/templates/compose/onedev.yaml b/templates/compose/onedev.yaml new file mode 100644 index 000000000..87e719daf --- /dev/null +++ b/templates/compose/onedev.yaml @@ -0,0 +1,41 @@ +# documentation: https://docs.onedev.io/ +# slogan: Git server with CI/CD, kanban, and packages. Seamless integration. Unparalleled experience. +# tags: git, scm, ci, cd, kanban, packages, devops, collaboration, code, repository, management +# logo: svgs/onedev.svg +# port: 6610 +services: + onedev-app: + image: 1dev/server:latest + volumes: + - onedev-docker-sock:/var/run/docker.sock + - onedev-data:/opt/onedev + restart: unless-stopped + environment: + - hibernate_dialect=io.onedev.server.persistence.PostgreSQLDialect + - hibernate_connection_driver_class=org.postgresql.Driver + - hibernate_connection_url=jdbc:postgresql://postgres:5432/${POSTGRESQL_DATABASE:-onedev} + - hibernate_connection_username=${SERVICE_USER_DATABASE} + - hibernate_connection_password=${SERVICE_PASSWORD_64_DATABASE} + - initial_user=${SERVICE_USER_ONEDEV} + - initial_password=${SERVICE_PASSWORD_ONEDEV} + - initial_email=${ONEDEV_EMAIL:-mail@example.com} + - initial_server_url=${SERVICE_FQDN_ONEDEV_6610} + - initial_ssh_root_url=${SSH_ROOT_URL:-ssh://changeme:22} + depends_on: + postgres: + condition: service_healthy + healthcheck: + test: ["CMD", "true"] + postgres: + image: postgres:16-alpine + volumes: + - postgresql-data:/var/lib/postgresql/data + environment: + - POSTGRES_USER=${SERVICE_USER_DATABASE} + - POSTGRES_PASSWORD=${SERVICE_PASSWORD_64_DATABASE} + - POSTGRES_DB=${POSTGRESQL_DATABASE:-onedev} + healthcheck: + test: ["CMD-SHELL", "pg_isready"] + interval: 5s + timeout: 20s + retries: 10 \ No newline at end of file