https://github.com/derekhe/keygen-docker-compose
https://github.com/derekhe/keygen-docker-compose
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/derekhe/keygen-docker-compose
- Owner: derekhe
- Created: 2023-10-03T05:28:57.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-20T05:06:19.000Z (about 2 years ago)
- Last Synced: 2024-04-21T04:25:49.559Z (about 2 years ago)
- Language: Shell
- Size: 11.7 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Keygen.sh docker compose example
===============================
This is a simple example of how to use the keygen.sh docker image with docker compose.
You need to have docker and docker compose >v2.24.0 installed in your system.
## Usage
1. Clone this repository
2. Run `docker compose run init` (or `docker compose run --build init` if you update the repo) to generate the keys and account id. If you have problems when running the command, please make sure docker compose >v2.24.0 is installed in your system.
3. Run `docker compose run setup` to setup the keygen.sh environment
4. Set the user name and password you used in your environment
```bash
# Linux
export KEYGEN_ADMIN_USER=me@email.com
export KEYGEN_ADMIN_PASS=password123
```
5. Run `docker compose up --scale setup=0 --scale init=0` to start the keygen.sh server
6. Copy the certificates to the certificates folder. You should import the certificates to your system to avoid the security warning in the browser
```docker cp keygen-docker-compose-caddy-1:/data/caddy/pki ./certificates```
7. Try the api.rest in vscode to test the server