File tree Expand file tree Collapse file tree 1 file changed +37
-1
lines changed Expand file tree Collapse file tree 1 file changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,43 @@ http://localhost:8080/
85
85
86
86
The first reindex will take some time to finish. Subsequent reindex will be incremental so will take signigicantly less time.
87
87
88
- ### Build image locally
88
+ ## Using Docker compose
89
+
90
+ [ Docker-compose] ( https://docs.docker.com/compose/install/ ) example:
91
+
92
+ ``` yaml
93
+ version : " 3"
94
+
95
+ # More info at https://github.com/oracle/opengrok/docker/
96
+ services :
97
+ opengrok :
98
+ container_name : opengrok
99
+ image : opengrok/docker:latest
100
+ ports :
101
+ - " 8080:8080/tcp"
102
+ environment :
103
+ REINDEX : ' 60'
104
+ # Volumes store your data between container upgrades
105
+ volumes :
106
+ - ' ~/opengrok-src/:/opengrok/src/'
107
+ ` ` `
108
+
109
+ Save the file into ` docker-compose.yml` and then simply run
110
+
111
+ docker-compose up -d
112
+
113
+ Equivalent `docker run` command would look like this :
114
+
115
+ ` ` ` bash
116
+ docker run -d \
117
+ --name opengrok \
118
+ -p 8080:8080/tcp \
119
+ -e REINDEX="60" \
120
+ -v "~/opengrok-src/:/opengrok/src/" \
121
+ opengrok/docker:latest
122
+ ` ` `
123
+
124
+ # # Build image locally
89
125
90
126
If you want to do your own development, you can build the image yourself :
91
127
You can’t perform that action at this time.
0 commit comments