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
|
||||
$ 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
|
||||
$ kamal setup
|
||||
```
|
||||
|
||||
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
|
||||
service: kamal-example
|
||||
image: caddy
|
||||
service: web
|
||||
image: fogtype/caddy
|
||||
servers:
|
||||
- ubuntu@gamma.fogtype.com
|
||||
registry:
|
||||
server: localhost:5000
|
||||
username: _
|
||||
username: fogtype
|
||||
password:
|
||||
- KAMAL_REGISTRY_PASSWORD
|
||||
logging:
|
||||
driver: journald
|
||||
healthcheck:
|
||||
cmd: /bin/true
|
||||
|
|
Loading…
Add table
Reference in a new issue