Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
services:
|
||||
common-settings:
|
||||
environment:
|
||||
TZ: "${TIMEZONE:-Etc/UTC}"
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "10"
|
||||
compress: "true"
|
||||
restart: "${RESTARTPOLICY:-unless-stopped}"
|
@@ -0,0 +1,12 @@
|
||||
services:
|
||||
{%- set components = cookiecutter.component_s_canon.split(',') -%}
|
||||
{% for component in components %}
|
||||
{{ component }}-build:
|
||||
image: "{{ component }}:${% raw %}{{% endraw %}{{ component.upper() }}_VERSION{% raw %}}{% endraw %}"
|
||||
profiles: ["build", "build-{{ component }}"]
|
||||
build:
|
||||
context: "build-context/{{ component }}"
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
EXAMPLE_ARG_FOR_DOCKERFILE: ${EXAMPLE_ARG_FROM_ENV_FILE}
|
||||
{%- endfor %}
|
@@ -0,0 +1,11 @@
|
||||
services:
|
||||
{%- if ',' in cookiecutter.component_s_canon -%}
|
||||
{%- set components = cookiecutter.component_s_canon.split(',') -%}
|
||||
{% for component in components %}
|
||||
{{ component }}:
|
||||
container_name: {{ cookiecutter.service_canon }}-{{ component }}-${CONTEXT}
|
||||
{%- endfor %}
|
||||
{%- else -%}
|
||||
{{ component }}:
|
||||
container_name: {{ cookiecutter.component_s_canon }}-${CONTEXT}
|
||||
{%- endif -%}
|
32
docker-compose/{{ cookiecutter.project_slug }}/env/fully.qualified.domain.name.example
vendored
Normal file
32
docker-compose/{{ cookiecutter.project_slug }}/env/fully.qualified.domain.name.example
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
CONTEXT={{ cookiecutter.context_canon }}
|
||||
|
||||
|
||||
|
||||
# Set something sensible here and uncomment
|
||||
# ---
|
||||
{%- set components = cookiecutter.component_s_canon.split(',') -%}
|
||||
{% for component in components %}
|
||||
# {{ component.upper() }}_VERSION=x.y.z
|
||||
{%- endfor %}
|
||||
|
||||
|
||||
|
||||
# A ${LOCATION} var is usually not needed. It may be helpful when a ${CONTEXT}
|
||||
# extends over more than one location e.g. to bind-mount location-specific
|
||||
# config files or certificates into a container.
|
||||
# ---
|
||||
# LOCATION=
|
||||
|
||||
|
||||
|
||||
# Feel free to leave defaults. They apply while these vars are commented out
|
||||
# ---
|
||||
# RESTARTPOLICY=unless-stopped
|
||||
# TIMEZONE=Etc/UTC
|
||||
|
||||
|
||||
|
||||
# See 'docker-compose.override.yml' for how to make a variable available in
|
||||
# a Dockerfile
|
||||
# ---
|
||||
# EXAMPLE_ARG_FROM_ENV_FILE=must_be_available_in_dockerfile
|
Reference in New Issue
Block a user