-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #179 from mhupfauer/master
Update Dockerfile.gpu and provide docker-compose.yml examples
- Loading branch information
Showing
5 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Run NodeODM thorugh docker-compose | ||
To easily manage NodeODM with docker-compose take a look at these sample `docker-compose.yml` files | ||
|
||
## Quickstart | ||
Edit the `config-default.json` to match your required settings. Make sure you change the value for `token` to secure | ||
your NodeODM instance if you plan on hosting the server publicly | ||
|
||
## GPU acceleration | ||
To utilize the GPU acceleration of NVIDA graphics cards run: `docker-compose -f docker-compose.gpu.yml up -d` | ||
|
||
## CPU only operation | ||
If there is no GPU acceleration available you can run NodeODM on CPU only with: `docker-compose -f docker-compose.cpu.yml up -d` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"instance": "YOUR-INSTANCENAME", | ||
"odm_path": "/code", | ||
|
||
"logger": { | ||
"level": "error", | ||
"maxFileSize": 104857600, | ||
"maxFiles": 10, | ||
"logDirectory": "" | ||
}, | ||
|
||
"port": "3000", | ||
"deamon": false, | ||
"parallelQueueProcessing": 1, | ||
"cleanupTasksAfter": 2880, | ||
"test": false, | ||
"testSkipOrthophotos": false, | ||
"testSkipDems": false, | ||
"token": "CHANGE-THIS-TOKEN-TO-YOUR-OWN-SECRET", | ||
"authorizedIps": [], | ||
"maxImages": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: '3.8' | ||
services: | ||
node-odm: | ||
image: opendronemap/nodeodm | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- ./config-default.json:/var/www/config-default.json | ||
restart: unless-stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: '3.8' | ||
services: | ||
node-odm: | ||
image: opendronemap/nodeodm:gpu | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- ./config-default.json:/var/www/config-default.json | ||
privileged: true | ||
restart: unless-stopped | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
capabilities: [gpu] |