Skip to content

Commit dc75e5d

Browse files
committed
fix onedev
1 parent 34e7805 commit dc75e5d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

templates/compose/onedev.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
# tags: git, scm, ci, cd, kanban, packages, devops, collaboration, code, repository, management
44
# logo: svgs/onedev.svg
55
# port: 6610
6+
67
services:
7-
onedev-app:
8+
onedev:
89
image: 1dev/server:latest
910
volumes:
1011
- onedev-docker-sock:/var/run/docker.sock
1112
- onedev-data:/opt/onedev
12-
restart: unless-stopped
1313
environment:
14+
- SERVICE_FQDN_ONEDEV_6610
1415
- hibernate_dialect=io.onedev.server.persistence.PostgreSQLDialect
1516
- hibernate_connection_driver_class=org.postgresql.Driver
1617
- hibernate_connection_url=jdbc:postgresql://postgres:5432/${POSTGRESQL_DATABASE:-onedev}
@@ -19,17 +20,18 @@ services:
1920
- initial_user=${SERVICE_USER_ONEDEV}
2021
- initial_password=${SERVICE_PASSWORD_ONEDEV}
2122
- initial_email=${ONEDEV_EMAIL:[email protected]}
22-
- initial_server_url=${SERVICE_FQDN_ONEDEV_6610}
23+
- initial_server_url=${SERVICE_FQDN_ONEDEV}
2324
- initial_ssh_root_url=${SSH_ROOT_URL:-ssh://changeme:22}
2425
depends_on:
2526
postgres:
2627
condition: service_healthy
2728
healthcheck:
2829
test: ["CMD", "true"]
30+
2931
postgres:
3032
image: postgres:16-alpine
3133
volumes:
32-
- postgresql-data:/var/lib/postgresql/data
34+
- onedev-postgresql-data:/var/lib/postgresql/data
3335
environment:
3436
- POSTGRES_USER=${SERVICE_USER_DATABASE}
3537
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_64_DATABASE}
@@ -38,4 +40,4 @@ services:
3840
test: ["CMD-SHELL", "pg_isready"]
3941
interval: 5s
4042
timeout: 20s
41-
retries: 10
43+
retries: 10

0 commit comments

Comments
 (0)