mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 13:58:08 +00:00
create kamal
This commit is contained in:
parent
07f7302115
commit
0fa1ac35b5
3 changed files with 15 additions and 12 deletions
1
kamal/.gitignore
vendored
Normal file
1
kamal/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.env
|
|
@ -7,14 +7,13 @@ KAMAL_REGISTRY_PASSWORD=*
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker context create --docker=host=ssh://ubuntu@gamma.fogtype.com gamma
|
$ kamal setup
|
||||||
$ docker context use gamma
|
|
||||||
$ docker run --rm -d -p 127.0.0.1:5000:5000 --name registry registry
|
|
||||||
$ ssh -NL 5000:localhost:5000 ubuntu@gamma.fogtype.com
|
|
||||||
$ docker context use default
|
|
||||||
$ kamal deploy
|
|
||||||
```
|
```
|
||||||
|
|
||||||
TODO
|
```
|
||||||
|
ubuntu@gamma:~$ mkdir -p .kamal/env/roles
|
||||||
|
ubuntu@gamma:~$ touch .kamal/env/roles/web-web.env
|
||||||
|
ubuntu@gamma:~$ chmod 600 .kamal/env/roles/web-web.env
|
||||||
|
```
|
||||||
|
|
||||||
- [ ] Docker レジストリどうするか問題
|
- Docker レジストリどうするか => Docker Hub などパブリックなものを使用するのが簡単
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/kjellberg/mrsk/validate-with-json-schema/lib/mrsk/configuration/schema.yaml
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/kjellberg/mrsk/validate-with-json-schema/lib/mrsk/configuration/schema.yaml
|
||||||
service: kamal-example
|
service: web
|
||||||
image: caddy
|
image: fogtype/caddy
|
||||||
servers:
|
servers:
|
||||||
- ubuntu@gamma.fogtype.com
|
- ubuntu@gamma.fogtype.com
|
||||||
registry:
|
registry:
|
||||||
server: localhost:5000
|
username: fogtype
|
||||||
username: _
|
|
||||||
password:
|
password:
|
||||||
- KAMAL_REGISTRY_PASSWORD
|
- KAMAL_REGISTRY_PASSWORD
|
||||||
|
logging:
|
||||||
|
driver: journald
|
||||||
|
healthcheck:
|
||||||
|
cmd: /bin/true
|
||||||
|
|
Loading…
Add table
Reference in a new issue