first commit

This commit is contained in:
Yhael S
2023-04-19 14:27:50 -05:00
commit 6b2571d805
19 changed files with 1505 additions and 0 deletions

5
postgres/Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM postgres:15.1
RUN apt-get update && apt-get install postgresql-contrib
COPY ./entrypoint.sh /docker-entrypoint-initdb.d/entrypoint.sh

3
postgres/entrypoint.sh Executable file
View File

@@ -0,0 +1,3 @@
psql -p 5432 -U odoo -d postgres -c "CREATE DATABASE unaccent_template WITH TEMPLATE = template0"
psql -p 5432 -U odoo -d postgres -c "\\c unaccent_template"
psql -p 5432 -U odoo -d postgres -c "CREATE EXTENSION IF NOT EXISTS unaccent;"