Skip to content

Commit 34e7805

Browse files
authored
Merge pull request coollabsio#3111 from christiankolbow/template-onedev
feat: add onedev template
2 parents dee9123 + 2f356b1 commit 34e7805

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

public/svgs/onedev.svg

Lines changed: 51 additions & 0 deletions
Loading

templates/compose/onedev.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# documentation: https://docs.onedev.io/
2+
# slogan: Git server with CI/CD, kanban, and packages. Seamless integration. Unparalleled experience.
3+
# tags: git, scm, ci, cd, kanban, packages, devops, collaboration, code, repository, management
4+
# logo: svgs/onedev.svg
5+
# port: 6610
6+
services:
7+
onedev-app:
8+
image: 1dev/server:latest
9+
volumes:
10+
- onedev-docker-sock:/var/run/docker.sock
11+
- onedev-data:/opt/onedev
12+
restart: unless-stopped
13+
environment:
14+
- hibernate_dialect=io.onedev.server.persistence.PostgreSQLDialect
15+
- hibernate_connection_driver_class=org.postgresql.Driver
16+
- hibernate_connection_url=jdbc:postgresql://postgres:5432/${POSTGRESQL_DATABASE:-onedev}
17+
- hibernate_connection_username=${SERVICE_USER_DATABASE}
18+
- hibernate_connection_password=${SERVICE_PASSWORD_64_DATABASE}
19+
- initial_user=${SERVICE_USER_ONEDEV}
20+
- initial_password=${SERVICE_PASSWORD_ONEDEV}
21+
- initial_email=${ONEDEV_EMAIL:[email protected]}
22+
- initial_server_url=${SERVICE_FQDN_ONEDEV_6610}
23+
- initial_ssh_root_url=${SSH_ROOT_URL:-ssh://changeme:22}
24+
depends_on:
25+
postgres:
26+
condition: service_healthy
27+
healthcheck:
28+
test: ["CMD", "true"]
29+
postgres:
30+
image: postgres:16-alpine
31+
volumes:
32+
- postgresql-data:/var/lib/postgresql/data
33+
environment:
34+
- POSTGRES_USER=${SERVICE_USER_DATABASE}
35+
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_64_DATABASE}
36+
- POSTGRES_DB=${POSTGRESQL_DATABASE:-onedev}
37+
healthcheck:
38+
test: ["CMD-SHELL", "pg_isready"]
39+
interval: 5s
40+
timeout: 20s
41+
retries: 10

0 commit comments

Comments
 (0)