Skip to content

The Unified and Autonomous Development Platform

Helpful docker compose

StrajnarFilip339cc94e1ba3
diff --git a/docker-compose.yaml b/docker-compose.yaml
new file mode 100644
index 0000000000..fae098677e
--- /dev/null
+++ b/docker-compose.yaml
@@ -0,0 +1,38 @@
+services:
+ onedev:
+ image: 1dev/server
+ volumes:
+ - ./onedev:/opt/onedev
+ restart: always
+ ports:
+ - "6610:6610"
+ - "6611:6611"
+ environment:
+ ### Must change:
+ initial_password: "user-secure-password"
+ initial_email: "[email protected]"
+ initial_user: admin
+ hibernate_connection_password: secure-db-password
+ # initial_server_url: "https://your.domain.name"
+
+ ### No need to change:
+ hibernate_dialect: io.onedev.server.persistence.PostgreSQLDialect
+ hibernate_connection_driver_class: org.postgresql.Driver
+ hibernate_connection_url: jdbc:postgresql://postgres:5432/onedev
+ hibernate_connection_username: postgres
+
+ postgres:
+ image: postgres:14-alpine3.15
+ restart: always
+ environment:
+ ### Must change:
+ POSTGRES_PASSWORD: "secure-db-password"
+
+ ### No need to change:
+ POSTGRES_USER: "postgres"
+ POSTGRES_DB: "onedev"
+ ports:
+ - 5432:5432
+ #- 0.0.0.0:5432:5432
+ volumes:
+ - ./postgres:/var/lib/postgresql/data