mirror of
https://github.com/chubin/cheat.sh.git
synced 2025-01-06 04:16:04 +03:00
Different compose file whether we want to build and run or just pull and run
This commit is contained in:
parent
0c793fb1d4
commit
19c0aaa437
@ -43,6 +43,8 @@ Such a thing exists.
|
||||
* [Client usage](#client-usage)
|
||||
* [Tab-completion](#tab-completion)
|
||||
* [Stealth mode](#stealth-mode)
|
||||
* [Self-Hosting](#self-hosting)
|
||||
* [Docker](#docker)
|
||||
* [Editors integration](#editors-integration)
|
||||
* [Vim](#vim)
|
||||
* [Emacs](#emacs)
|
||||
@ -405,6 +407,13 @@ because you know what happens when you do.
|
||||
|
||||
![when you lie in your interview](http://cheat.sh/files/when-you-lie-katze.png)
|
||||
|
||||
## Self-Hosting
|
||||
|
||||
### Docker
|
||||
|
||||
Currently the easiest way to get a self-hosted instance running is by using the docker-compose.yml file provided in the extra/docker folder.
|
||||
This pulls down the latest image with baked in cheatsheets and starts the app and a Redis instance to back it, making the service available on port 8002 of the local host. This is currently an early implementation and should probably not be used for anything outside of internal/dev/personal use right now.
|
||||
|
||||
## Editors integration
|
||||
|
||||
You can use *cheat.sh* directly from the editor (*Vim*, *Emacs* and *Visual Studio Code* are currently supported).
|
||||
|
15
docker-compose.build.yml
Normal file
15
docker-compose.build.yml
Normal file
@ -0,0 +1,15 @@
|
||||
version: '2'
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
depends_on:
|
||||
- redis
|
||||
ports:
|
||||
- "8002:8002"
|
||||
redis:
|
||||
image: redis:4-alpine
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
volumes:
|
||||
redis_data:
|
@ -1,8 +1,7 @@
|
||||
version: '2'
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
image: cheat.sh
|
||||
depends_on:
|
||||
- redis
|
||||
ports:
|
||||
|
Loading…
Reference in New Issue
Block a user