Skip to content

Commit f669c14

Browse files
Merge branch 'make-module-lean'
2 parents 812091c + 51dae4e commit f669c14

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+278
-1187
lines changed

.env.example.real renamed to .env.example

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
HOST_IP=host.docker.internal
2-
APP_ENV=real
3-
42
# You must type your exposed formal URL or IP such as https://test.com
53
# Please provide your URL in the following format: <--http or https-->://<--your-ip--> (Replace "your-ip" with your IP address or domain name. Make sure it is in the form of IPv4 or a domain and can be accessed externally. Specify whether it is an HTTP or HTTPS connection, e.g., http:// or https://)
64
APP_URL=
@@ -51,22 +49,24 @@ APP_HEALTH_CHECK_PATH=xxx
5149
BAD_APP_HEALTH_CHECK_PATTERN=xxx
5250
GOOD_APP_HEALTH_CHECK_PATTERN=xxx
5351

54-
# This is for environment variables for docker-compose-app-${app_env}.
52+
# This is for environment variables for docker-compose-app.
5553
DOCKER_COMPOSE_ENVIRONMENT={}
5654
DOCKER_BUILD_ARGS={}
5755
DOCKER_BUILD_LABELS=[]
56+
# EX. --platform linux/amd64
57+
DOCKER_BUILD_ADDITIONAL_RAW_PARAMS=
5858
DOCKER_BUILD_SHA_INSERT_GIT_ROOT=
5959

60-
# This is overwritten on docker-compose-${project_name}-${app_env}.yml
61-
DOCKER_COMPOSE_REAL_SELECTIVE_VOLUMES=[]
62-
# This is added on docker-compose-${project_name}-nginx.yml
60+
# This is overwritten on docker-compose-${project_name}.yml
61+
DOCKER_COMPOSE_SELECTIVE_VOLUMES=[]
62+
# This is added on docker-orchestration-${project_name}-nginx.yml
6363
DOCKER_COMPOSE_NGINX_SELECTIVE_VOLUMES=["./shared/nginx-error-logs:/var/log/nginx"]
6464
# Check if the host folder or file exists
6565
DOCKER_COMPOSE_HOST_VOLUME_CHECK=false
6666

6767
NGINX_CLIENT_MAX_BODY_SIZE=50M
6868

69-
# Format : docker-compose-${project_name}-${app_env}-original-ready.yml
69+
# Format : docker-compose-${project_name}-original-ready.yml
7070
USE_MY_OWN_APP_YML=false
7171

7272
SKIP_BUILDING_APP_IMAGE=false

.env.java.real renamed to .env.example.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# IMPORTANT - mac : docker.for.mac.localhost OR check IP. / win : host.docker.internal OR you can just type your host IP.
22
HOST_IP=host.docker.internal
3-
APP_ENV=real
43

54
APP_URL=http://localhost:18200
65

@@ -43,15 +42,17 @@
4342
GOOD_APP_HEALTH_CHECK_PATTERN=production
4443

4544

46-
# This is for environment variables for docker-compose-app-${app_env}.
45+
# This is for environment variables for docker-compose-app.
4746
DOCKER_COMPOSE_ENVIRONMENT={"TZ":"Asia/Seoul"}
4847
# This goes with "docker build ... in the 'run.sh' script file", and the command always contain "HOST_IP" and "APP_ENV" above.
4948
# docker exec -it CONTAINER_NAME cat /var/log/env_build_args.log
50-
DOCKER_BUILD_ARGS={"DOCKER_BUILDKIT":"1","PROJECT_ROOT_IN_CONTAINER":"/var/www/server/spring-sample-h-auth","APP_ENV":"production"}
49+
DOCKER_BUILD_ARGS={"DOCKER_BUILDKIT":"1","PROJECT_ROOT_IN_CONTAINER":"/var/www/server/spring-sample-h-auth","FILE_STORAGE_ROOT_IN_CONTAINER":"/var/www/files","APP_ENV":"production"}
5150
DOCKER_BUILD_LABELS=["foo=happy","bar=sad"]
51+
# For Mac like, EX. DOCKER_BUILD_ADDITIONAL_RAW_PARAMS=--platform linux/amd64
52+
DOCKER_BUILD_ADDITIONAL_RAW_PARAMS=--platform linux/amd64
5253
DOCKER_BUILD_SHA_INSERT_GIT_ROOT=
5354

54-
DOCKER_COMPOSE_REAL_SELECTIVE_VOLUMES=["./samples/spring-sample-h-auth/logs:/var/www/files"]
55+
DOCKER_COMPOSE_SELECTIVE_VOLUMES=["./samples/spring-sample-h-auth/logs:/var/www/files"]
5556
DOCKER_COMPOSE_NGINX_SELECTIVE_VOLUMES=["./shared/nginx-error-logs:/var/log/nginx"]
5657
DOCKER_COMPOSE_HOST_VOLUME_CHECK=false
5758

.env.java.real.commercial.ssl.sample renamed to .env.example.java.commercial.ssl.sample

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
HOST_IP=host.docker.internal
2-
APP_ENV=real
32

43
APP_URL=https://localhost:8300
54

@@ -42,16 +41,18 @@ BAD_APP_HEALTH_CHECK_PATTERN=xxxxxxx
4241
GOOD_APP_HEALTH_CHECK_PATTERN=production
4342

4443

45-
# This is for environment variables for docker-compose-app-${app_env}.
44+
# This is for environment variables for docker-compose-app.
4645
DOCKER_COMPOSE_ENVIRONMENT={"TZ":"Asia/Seoul"}
4746
# This goes with "docker build ... in the 'run.sh' script file", and the command always contain "HOST_IP" and "APP_ENV" above.
4847
# 2) ''/var/web/project/spring-sample-h-auth' is here as well
4948
DOCKER_BUILD_ARGS={"DOCKER_BUILDKIT":"1","PROJECT_ROOT_IN_CONTAINER":"/var/www/server/spring-sample-h-auth","FILE_STORAGE_ROOT_IN_CONTAINER":"/var/www/files","JVM_XMS":"2048","JVM_XMX":"4096"}
5049
DOCKER_BUILD_LABELS=["foo.mylabel=happy","bar.mylabel=happy"]
50+
# EX. --platform linux/amd64
51+
DOCKER_BUILD_ADDITIONAL_RAW_PARAMS=
5152
DOCKER_BUILD_SHA_INSERT_GIT_ROOT=/var/www/server/spring-sample-h-auth
5253

5354
# 3) ''/var/web/project/spring-sample-h-auth' is here as well. The thing is you should locate 'application.properties', 'logback-spring.xml', 'yourdomain.com.jks' on the './src/main/resource' folder.
54-
DOCKER_COMPOSE_REAL_SELECTIVE_VOLUMES=["/var/web/files/spring-sample-h-auth:/var/www/files","/var/web/project/spring-sample-h-auth/src/main/resources:/var/www/server/spring-sample-h-auth/src/main/resources"]
55+
DOCKER_COMPOSE_SELECTIVE_VOLUMES=["/var/web/files/spring-sample-h-auth:/var/www/files","/var/web/project/spring-sample-h-auth/src/main/resources:/var/www/server/spring-sample-h-auth/src/main/resources"]
5556
DOCKER_COMPOSE_NGINX_SELECTIVE_VOLUMES=["/var/web/files/nginx/spring-sample-h-auth/logs:/var/log/nginx"]
5657
DOCKER_COMPOSE_HOST_VOLUME_CHECK=false
5758

.env.example.local

Lines changed: 0 additions & 87 deletions
This file was deleted.

.env.node.local renamed to .env.example.node

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# IMPORTANT - mac : docker.for.mac.localhost OR check IP. / win : host.docker.internal OR you can just type your host IP.
22
HOST_IP=host.docker.internal
3-
APP_ENV=local
43

54
APP_URL=http://localhost:13000
65

@@ -41,14 +40,17 @@ APP_HEALTH_CHECK_PATH=v1/docs
4140
BAD_APP_HEALTH_CHECK_PATTERN=xxxxxxx
4241
GOOD_APP_HEALTH_CHECK_PATTERN=docs
4342

44-
# This is for environment variables for docker-compose-app-${app_env}.
43+
# This is for environment variables for docker-compose-app.
4544
DOCKER_COMPOSE_ENVIRONMENT={"MONGODB_URL":"mongodb://host.docker.internal:27017/node-boilerplate","NODE_ENV":"development"}
4645
DOCKER_BUILD_ARGS={}
4746
DOCKER_BUILD_LABELS=["foo=happy","bar=sad"]
47+
# EX. --platform linux/amd64
48+
DOCKER_BUILD_ADDITIONAL_RAW_PARAMS=
4849
DOCKER_BUILD_SHA_INSERT_GIT_ROOT=
4950

5051
DOCKER_COMPOSE_NGINX_SELECTIVE_VOLUMES=[]
5152
DOCKER_COMPOSE_HOST_VOLUME_CHECK=false
53+
DOCKER_COMPOSE_SELECTIVE_VOLUMES=[]
5254

5355
NGINX_CLIENT_MAX_BODY_SIZE=50M
5456

.env.php.real renamed to .env.example.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# IMPORTANT - mac : docker.for.mac.localhost OR check IP. / win : host.docker.internal OR you can just type your host IP.
22
HOST_IP=host.docker.internal
3-
APP_ENV=real
43

54
# I recommend you should type your exposed formal URL or IP such as https://test.com for the test of 'check_availability_out_of_container' in the script 'run.sh'
65
APP_URL=https://localhost:8081
@@ -43,18 +42,20 @@
4342
GOOD_APP_HEALTH_CHECK_PATTERN=UP
4443
4544
46-
# This is for environment variables for docker-compose-app-${app_env}.
45+
# This is for environment variables for docker-compose-app.
4746
DOCKER_COMPOSE_ENVIRONMENT={"XDEBUG_CONFIG":"idekey=IDE_DEBUG","PHP_IDE_CONFIG":"serverName=laravel-crud-boilerplate"}
4847
# This goes with "docker build ... in the 'run.sh' script file", and the command always contain "HOST_IP" and "APP_ENV" above.
4948
# docker exec -it CONTAINER_NAME cat /var/log/env_build_args.log
5049
DOCKER_BUILD_ARGS={"SAMPLE":"YAHOO","SAMPLE2":"YAHOO2","shared_volume_group_id":"1351","shared_volume_group_name":"laravel-shared-volume-group"}
5150
DOCKER_BUILD_LABELS=["foo=happy","bar=sad"]
51+
# EX. --platform linux/amd64
52+
DOCKER_BUILD_ADDITIONAL_RAW_PARAMS=
5253
# Your Git's commit SHA will be added as a label to DOCKER_BUILD_LABELS when your container is built.
5354
DOCKER_BUILD_SHA_INSERT_GIT_ROOT=
5455

5556
# In the case of "REAL," the project is not synchronized in its entirety. The source codes that are required for only production are injected.
56-
# For SSL, the host folder is recommended to be './.docker/ssl' to be synchronized with 'docker-compose-nginx-original.yml'
57-
DOCKER_COMPOSE_REAL_SELECTIVE_VOLUMES=["./shared/app-error-logs:/var/www/app/storage/logs","./.docker/ssl:/etc/apache2/ssl"]
57+
# For SSL, the host folder is recommended to be './.docker/ssl' to be synchronized with 'docker-orchestration-app-nginx-original.yml'
58+
DOCKER_COMPOSE_SELECTIVE_VOLUMES=["./shared/app-error-logs:/var/www/app/storage/logs","./.docker/ssl:/etc/apache2/ssl"]
5859
DOCKER_COMPOSE_NGINX_SELECTIVE_VOLUMES=["./shared/nginx-error-logs:/var/log/nginx"]
5960
DOCKER_COMPOSE_HOST_VOLUME_CHECK=false
6061

.env.java.local

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)