-
Notifications
You must be signed in to change notification settings - Fork 6
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
0fcae3f
commit 2ad81ad
Showing
6 changed files
with
101 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,4 +45,5 @@ npm-debug.log | |
|
||
.env.test | ||
.env.dev | ||
.env | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
KAMAL_REGISTRY_USERNAME=$KAMAL_REGISTRY_USERNAME | ||
KAMAL_REGISTRY_PASSWORD=$KAMAL_REGISTRY_PASSWORD |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SERVER_IP=$DEV_SERVER_IP | ||
SECRET_KEY_BASE=$DEV_SECRET_KEY_BASE | ||
DATABASE_URL=$DEV_DATABASE_URL | ||
PHX_HOST=$DEV_PHX_HOST | ||
PORT=$DEV_PORT | ||
FILE_VOLUME_PATH=$FILE_VOLUME_PATH | ||
DISABLE_ML_FEATURES=$DISABLE_ML_FEATURES |
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Name of your application. Used to uniquely configure containers. | ||
service: animina | ||
|
||
<% require "dotenv"; Dotenv.load(".env") %> | ||
|
||
# Name of the container image. | ||
image: animina/animina | ||
|
||
# Deploy to these servers. | ||
servers: | ||
web: | ||
hosts: | ||
- <%= ENV["DEV_SERVER_IP"] %> | ||
options: | ||
publish: PORT:4000 | ||
proxy: false | ||
|
||
# Credentials for your image host. | ||
registry: | ||
server: ghcr.io | ||
username: | ||
- KAMAL_REGISTRY_USERNAME | ||
# Always use an access token rather than real password (pulled from .kamal/secrets). | ||
password: | ||
- KAMAL_REGISTRY_PASSWORD | ||
|
||
# Configure builder setup. | ||
# builder: | ||
# arch: amd64 | ||
|
||
builder: | ||
cache: | ||
type: registry | ||
arch: | ||
- amd64 | ||
- arm64 | ||
|
||
# Inject ENV variables into containers (secrets come from .kamal/secrets). | ||
env: | ||
clear: | ||
PORT: 4000 | ||
MIX_ENV: prod | ||
secret: | ||
- <%= ENV["DEV_DATABASE_URL"] %> | ||
- <%= ENV["DEV_SECRET_KEY_BASE"] %> | ||
- <%= ENV["DEV_PHX_HOST"] %> | ||
- <%= ENV["DISABLE_ML_FEATURES"] %> | ||
# Aliases are triggered with "bin/kamal <alias>". You can overwrite arguments on invocation: | ||
# "bin/kamal logs -r job" will tail logs from the first server in the job section. | ||
# | ||
# aliases: | ||
# shell: app exec --interactive --reuse "bash" | ||
|
||
# Use a different ssh user than root | ||
# | ||
ssh: | ||
user: root | ||
# Use a persistent storage volume. | ||
# | ||
# volumes: | ||
# - "app_storage:/app/storage" | ||
|
||
# Bridge fingerprinted assets, like JS and CSS, between versions to avoid | ||
# hitting 404 on in-flight requests. Combines all files from new and old | ||
# version inside the asset_path. | ||
# | ||
# asset_path: /app/public/assets | ||
|
||
# Configure rolling deploys by setting a wait time between batches of restarts. | ||
# | ||
# boot: | ||
# limit: 10 # Can also specify as a percentage of total hosts, such as "25%" | ||
# wait: 2 |
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