feat: deploy
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
service: bemeal
|
||||
image: daily_meal/bemeal-api
|
||||
|
||||
x-hosts: &hosts
|
||||
- <%= ENV.fetch("SSH_HOST", "89.167.35.217") %>
|
||||
|
||||
servers:
|
||||
web:
|
||||
hosts: *hosts
|
||||
horizon:
|
||||
hosts: *hosts
|
||||
cmd: php artisan horizon
|
||||
scheduler:
|
||||
hosts: *hosts
|
||||
cmd: php artisan schedule:work
|
||||
|
||||
proxy:
|
||||
host: bemeal.leonmorival.com
|
||||
ssl: true
|
||||
app_port: 80
|
||||
healthcheck:
|
||||
path: /up
|
||||
|
||||
registry:
|
||||
server: gitea.leonmorival.com
|
||||
username: leon.morival@gmail.com
|
||||
password:
|
||||
- GITEA_TOKEN
|
||||
|
||||
ssh:
|
||||
user: <%= ENV.fetch("SSH_USER", "root") %>
|
||||
|
||||
builder:
|
||||
arch: amd64
|
||||
|
||||
env:
|
||||
clear:
|
||||
APP_LOCALE: fr
|
||||
APP_ENV: production
|
||||
APP_DEBUG: "false"
|
||||
APP_URL: https://bemeal.leonmorival.com
|
||||
SERVER_NAME: ":80"
|
||||
APP_RUNTIME: "Laravel\\FrankenPHP\\Runtime"
|
||||
FILESYSTEM_DISK: public
|
||||
DB_CONNECTION: pgsql
|
||||
DB_HOST: bemeal-pgsql
|
||||
DB_PORT: "5432"
|
||||
REDIS_HOST: bemeal-redis
|
||||
REDIS_CLIENT: predis
|
||||
QUEUE_CONNECTION: redis
|
||||
SCOUT_DRIVER: meilisearch
|
||||
MEILISEARCH_HOST: http://bemeal-meilisearch:7700
|
||||
secret:
|
||||
- APP_KEY
|
||||
- DB_DATABASE
|
||||
- DB_USERNAME
|
||||
- DB_PASSWORD
|
||||
- MEILISEARCH_KEY
|
||||
|
||||
volumes:
|
||||
- bemeal_storage_data:/var/www/html/storage/app
|
||||
- bemeal_storage_public_data:/var/www/html/storage/app/public
|
||||
|
||||
aliases:
|
||||
artisan: app exec --reuse "php artisan"
|
||||
shell: app exec --interactive --reuse "sh"
|
||||
Reference in New Issue
Block a user