mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 23:38:13 +02:00
THE HUGE REFACTORING CALENDER WEEK 33; Optimized Matrix and during this updated variables, and implemented better reset and cleanup mode handling, also solved some initial setup bugs
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
FROM {{ postgres_image }}:{{ postgres_version }}
|
||||
FROM {{ POSTGRES_IMAGE }}:{{ POSTGRES_VERSION }}
|
||||
|
||||
{% if postgres_pg_vector_enabled %}
|
||||
{% if POSTGRES_VECTOR_ENABLED %}
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
|
@@ -1,15 +1,15 @@
|
||||
{% include 'roles/docker-compose/templates/base.yml.j2' %}
|
||||
|
||||
postgres:
|
||||
container_name: "{{ postgres_name }}"
|
||||
image: "{{ postgres_custom_image_name }}"
|
||||
container_name: "{{ POSTGRES_CONTAINER }}"
|
||||
image: "{{ POSTGRES_CUSTOM_IMAGE_NAME }}"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
||||
{% if postgres_expose_local %}
|
||||
{% if POSTGRES_EXPOSE_LOCAL %}
|
||||
ports:
|
||||
- "{{ postgres_local_host }}:{{ postgres_port }}:5432"
|
||||
- "{{ POSTGRES_LOCAL_HOST }}:{{ POSTGRES_PORT }}:5432"
|
||||
{% endif %}
|
||||
volumes:
|
||||
- "data:/var/lib/postgresql/data"
|
||||
@@ -17,6 +17,6 @@
|
||||
|
||||
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
|
||||
data:
|
||||
name: "{{ postgres_volume }}"
|
||||
name: "{{ POSTGRES_VOLUME }}"
|
||||
|
||||
{% include 'roles/docker-compose/templates/networks.yml.j2' %}
|
@@ -1,3 +1,3 @@
|
||||
POSTGRES_PASSWORD="{{ postgres_password }}"
|
||||
POSTGRES_PASSWORD="{{ POSTGRES_PASSWORD }}"
|
||||
# Necessary for web-app-matrix
|
||||
POSTGRES_INITDB_ARGS="--encoding=UTF8 --locale=C"
|
Reference in New Issue
Block a user