-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73edbb6
commit aa954b0
Showing
3 changed files
with
41 additions
and
42 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/yamllint.json | ||
# Name of your application. Used to uniquely configure containers. | ||
# INFO: muss gleich sein zum Label "service" des zu deployende Dockerfile | ||
# siehe: `../../nginx/Dockerfile` | ||
service: nginx | ||
|
||
# Name of the container image. | ||
|
@@ -16,11 +18,28 @@ servers: | |
# Credentials for your image host. | ||
registry: | ||
# Specify the registry server, if you're not using Docker Hub | ||
server: <%= ENV.fetch('KAMAL_REGISTRY') %> | ||
server: <%= ENV['KAMAL_REGISTRY'] || 'not-defined' %> | ||
username: AWS | ||
|
||
# Always use an access token rather than real password when possible. | ||
password: <%= ENV.fetch('KAMAL_REGISTRY_PASSWORD') %> | ||
password: <%= ENV['KAMAL_REGISTRY_PASSWORD'] || 'not-defined' %> | ||
|
||
hooks_path: ./hooks # path relative to where "kamal" command is run! | ||
|
||
ssh: | ||
user: ubuntu | ||
# keys_only: true | ||
# keys: ["~/.ssh/id_rsa.pem"] | ||
|
||
# Configure custom arguments for Traefik. Be sure to reboot traefik when you modify it. | ||
traefik: | ||
options: | ||
network: "kamal" # INFO: needs `docker network create kamal` on the servers! | ||
|
||
# Configure a custom healthcheck (default is /up on port 3000) | ||
healthcheck: | ||
path: /up | ||
port: 3000 | ||
|
||
# Inject ENV variables into containers (secrets come from .env). | ||
# Remember to run `kamal env push` after making changes! | ||
|
@@ -32,25 +51,6 @@ registry: | |
# - MYSQL_PASSWORD | ||
# - MYSQL_DATABASE | ||
|
||
hooks_path: ./hooks # path relative to where "kamal" command is run! | ||
|
||
ssh: | ||
user: ubuntu | ||
# keys_only: true | ||
# keys: ["~/.ssh/id_rsa.pem"] | ||
|
||
# Configure builder setup. | ||
# builder: | ||
# context: ../nginx | ||
# dockerfile: ../nginx/Dockerfile | ||
# args: | ||
# RUBY_VERSION: 3.2.0 | ||
# secrets: | ||
# - GITHUB_TOKEN | ||
# remote: | ||
# arch: amd64 | ||
# host: ssh://[email protected] | ||
|
||
# Use accessory services (secrets come from .env). | ||
# INFO: Uncomment to add mysql to the server | ||
# Also add all envs as GitHub Environment vars. | ||
|
@@ -72,12 +72,15 @@ ssh: | |
# directories: | ||
# - data:/var/lib/mysql | ||
|
||
# Configure custom arguments for Traefik. Be sure to reboot traefik when you modify it. | ||
traefik: | ||
options: | ||
network: "kamal" # INFO: needs `docker network create kamal` on the servers! | ||
|
||
# Configure a custom healthcheck (default is /up on port 3000) | ||
healthcheck: | ||
path: /up | ||
port: 3000 | ||
# INFO: Not used in our setup as we build isolated | ||
# Configure builder setup. | ||
# builder: | ||
# context: ../nginx | ||
# dockerfile: ../nginx/Dockerfile | ||
# args: | ||
# RUBY_VERSION: 3.2.0 | ||
# secrets: | ||
# - GITHUB_TOKEN | ||
# remote: | ||
# arch: amd64 | ||
# host: ssh://[email protected] |
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