Skip to content

Commit

Permalink
feature/DLT-29-restructure
Browse files Browse the repository at this point in the history
- Add new .env file templates for environments
- Update .env file variables
  • Loading branch information
nspalo committed Sep 4, 2023
1 parent 9d92c37 commit c87680f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
17 changes: 9 additions & 8 deletions docker/environments/config.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
# Docker Environment Config
#============================

# ENVIROMENT
# SYSTEM VARIABLES
SYS_ENV=local

# DIRECTORIES / VOLUMES / PATHS
# PATHS / DIRECTORIES / VOLUMES
PATH_CONTAINERS=./containers
PATH_ENVIRONMENTS=./environments
PATH_VOLUMES=./volumes

PATH_PROJECT_SOURCE=../src
PATH_NGINX=./containers/nginx
PATH_NGINX_CONFIGS=${PATH_NGINX}/conf.d/default.conf
PATH_ENV_CONFIGS=./environments
PATH_DATABASE=./volumes/mysql
PATH_CONFIGS_NGINX=${PATH_CONTAINERS}/nginx/conf.d/default.conf

# DATABASE
DB_DRIVER=mysql
DB_VERSION=8.0.30
DB_PORT=3306
DB_VOLUME=${PATH_DATABASE}/${DB_DRIVER}_${DB_VERSION}
DB_VERSION=5.7.22
DB_VOLUME=${PATH_VOLUMES}/${DB_DRIVER}/${DB_DRIVER}_${DB_VERSION}
2 changes: 1 addition & 1 deletion docker/environments/local.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
MYSQL_DATABASE=db_docker_laravel
MYSQL_USER=dbUserDev
MYSQL_PASSWORD=dbUserDev123
MYSQL_ROOT_PASSWORD=dbUserRoot123
MYSQL_ROOT_PASSWORD=dbUserRoot123
9 changes: 9 additions & 0 deletions docker/environments/prod.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Docker Environment - Production
#============================

# DATABASE
MYSQL_DATABASE=
MYSQL_USER=
MYSQL_PASSWORD=
MYSQL_ROOT_PASSWORD=
9 changes: 9 additions & 0 deletions docker/environments/staging.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Docker Environment - Staging
#============================

# DATABASE
MYSQL_DATABASE=db_docker_laravel
MYSQL_USER=dbUserDev
MYSQL_PASSWORD=dbUserDev123
MYSQL_ROOT_PASSWORD=dbUserRoot123

0 comments on commit c87680f

Please sign in to comment.