Skip to content
This repository was archived by the owner on Mar 15, 2019. It is now read-only.

Commit 73adb92

Browse files
dkozickisJulien Neuhart
authored andcommitted
* Add ability to define PHP application source directory (#47)
* Bump Traefik to 1.4.3 to incorporate traefik/traefik#2302 (enables proper X-Forwarded-Port for PHP frameworks depending on X-Forwarded* during URL generation e.g. Symfony with setTrustedProxies enabled)
1 parent c964976 commit 73adb92

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

config/.env.blueprint

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010

1111
ENV=local
1212

13+
# |--------------------------------------------------------------------------
14+
# | Application directory
15+
# |--------------------------------------------------------------------------
16+
# |
17+
# | Application directory
18+
# |
19+
# | If your PHP application source is in other directory than 'app'.
20+
# | Change the value below.
21+
# | No trailing slash, relative to kickoff-docker root.
22+
# |
23+
24+
DIR=app
25+
1326
# |--------------------------------------------------------------------------
1427
# | Docker Sync
1528
# |--------------------------------------------------------------------------

docker-sync.blueprint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ options:
55

66
syncs:
77
{{ .EnvFiles.Config.ENV }}{{ .Values.Project.name }}_sync_app:
8-
src: './app/'
8+
src: './{{ .EnvFiles.Config.DIR }}/'
99
sync_userid: ${UID}
1010
sync_strategy: {{ if eq "darwin" os }}'native_osx'{{ else }}'unison'{{ end }}
1111
sync_excludes: ['.idea']

modules/nginx/docker-compose.blueprint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ services:
2727
{{- if eq "true" .EnvFiles.Config.ENABLE_DOCKER_SYNC }}
2828
- {{ .EnvFiles.Config.ENV }}{{ .Values.Project.name }}_sync_app:/var/www/html:nocopy
2929
{{- else }}
30-
- ../../app:/var/www/html:{{ if eq "darwin" os }}cached{{ else }}ro{{ end }}
30+
- ../../{{ .EnvFiles.Config.DIR }}:/var/www/html:{{ if eq "darwin" os }}cached{{ else }}ro{{ end }}
3131
{{- end }}
3232
- ./conf.d/php-fpm.conf:/etc/nginx/conf.d/php-fpm.conf:ro
3333
{{- if eq true .Values.Modules.graylog.enable }}

modules/php-fpm/docker-compose.blueprint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
{{- if eq "true" .EnvFiles.Config.ENABLE_DOCKER_SYNC }}
2424
- {{ .EnvFiles.Config.ENV }}{{ .Values.Project.name }}_sync_app:/var/www/html:nocopy
2525
{{- else }}
26-
- ../../app:/var/www/html:{{ if eq "darwin" os }}cached{{ else }}rw{{ end }}
26+
- ../../{{ .EnvFiles.Config.DIR }}:/var/www/html:{{ if eq "darwin" os }}cached{{ else }}rw{{ end }}
2727
{{- end }}
2828
- ./docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh:ro
2929
- ./conf.d/memory-limit.ini:/usr/local/etc/php/conf.d/memory-limit.ini:ro

modules/traefik/docker-compose.blueprint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66

77

88
proxy:
9-
image: traefik:1.4.0-alpine
9+
image: traefik:1.4.3-alpine
1010
container_name: kickoff-proxy
1111
restart: {{ if and (ne "local" .EnvFiles.Config.ENV) (eq false .Values.Modules.graylog.enable) }}unless-stopped{{ else }}"no"{{ end }}
1212
command: --docker --logLevel={{ .EnvFiles.Config.TRAEFIK_LOG_LEVEL }}

0 commit comments

Comments
 (0)