-
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.
* ci: created Docker env vars Following api-platform/api-platform#1965 * ci: adjusted deploy scripts * feat: added required env vars into .bash_aliases * docs: deployment with Docker * ci(dockerfile): adjusting openssh-server * no need for sshd_config * added docs * feat: simply sshtunnel ssh key config * ci: use bind-mounted folder for database instead * fix(env): set MESSENGER_TRANSPORT_DSN to a default * fix: console bash scripts
- Loading branch information
1 parent
56c7741
commit a9f5b21
Showing
13 changed files
with
144 additions
and
19 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# .env.caddy.php-bluegreen.redis.database.prod | ||
# | ||
# Runs docker with a production setup | ||
# | ||
# - 2 php services: php-blue and php-green | ||
# - redis for sessions | ||
# - node-build container for building JavaScript and CSS | ||
# - database running in docker | ||
# | ||
# @see https://github.com/api-platform/api-platform/pull/1965 | ||
# @see https://docs.docker.com/compose/environment-variables/envvars/#compose_file | ||
# | ||
# Usage: copy to .env so docker composer can use it | ||
SERVER_NAME="localhost" | ||
CADDY_MERCURE_JWT_SECRET=${CADDY_MERCURE_JWT_SECRET:-ChangeMe} | ||
POSTGRES_HOST=database | ||
GIT_SHA=$GITHUB_SHA | ||
COMPOSE_FILE=docker-compose.bluegreen.yml:docker-compose.database.yml:docker-compose.bluegreen.database.yml |
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,19 @@ | ||
# .env.caddy.php-bluegreen.redis.prod | ||
# | ||
# Runs docker with a production setup (no database in docker) | ||
# | ||
# - 2 php services: php-blue and php-green | ||
# - redis for sessions | ||
# - node-build container for building JavaScript and CSS | ||
# - database running on host (local would be on Mac) | ||
# | ||
# @see https://github.com/api-platform/api-platform/pull/1965 | ||
# @see https://docs.docker.com/compose/environment-variables/envvars/#compose_file | ||
# | ||
# Usage: copy to .env so docker composer can use it | ||
CADDY_MERCURE_JWT_SECRET=${CADDY_MERCURE_JWT_SECRET:-ChangeMe} | ||
POSTGRES_USER=${POSTGRES_USER:-app} | ||
POSTGRES_PASSWORD='' | ||
POSTGRES_HOST=host.docker.internal | ||
GIT_SHA=$GITHUB_SHA | ||
COMPOSE_FILE=docker-compose.bluegreen.yml |
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,14 @@ | ||
# .env.caddy.php.database.dev | ||
# | ||
# Start caddy, php (from the dev base), and the database | ||
# | ||
# Also used in CI in order to be able to run tests | ||
# | ||
# @see https://github.com/api-platform/api-platform/pull/1965 | ||
# @see https://docs.docker.com/compose/environment-variables/envvars/#compose_file | ||
# | ||
# Usage: copy to .env so docker composer can use it | ||
SERVER_NAME="localhost" | ||
POSTGRES_HOST=database | ||
GIT_SHA=$GITHUB_SHA | ||
COMPOSE_FILE=docker-compose.yml:docker-compose.override.yml:docker-compose.database.yml |
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
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
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,5 @@ | ||
#!/bin/bash | ||
source $HOME/.bash_aliases | ||
source $HOME/.docker_env_other | ||
RUN_COMMAND="$QW && $DC exec $DOCKER_PHP_ENV php -d memory_limit=2G bin/console" | ||
RUN_COMMAND="$DC exec $DOCKER_PHP_ENV php -d memory_limit=2G bin/console" | ||
eval $RUN_COMMAND "$@" |
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,5 @@ | ||
#!/bin/bash | ||
source $HOME/.bash_aliases | ||
source $HOME/.docker_env | ||
RUN_COMMAND="$QW && $DC exec $DOCKER_PHP_ENV php -d memory_limit=2G bin/console" | ||
RUN_COMMAND="$DC exec $DOCKER_PHP_ENV php -d memory_limit=2G bin/console" | ||
eval $RUN_COMMAND "$@" |
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
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