renewed way of install drupal and mount volumes
This commit is contained in:
parent
99e2863817
commit
53b6f493db
15 changed files with 1139 additions and 59 deletions
7
postgres_context/Dockerfile
Normal file
7
postgres_context/Dockerfile
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
FROM postgres:alpine
|
||||
|
||||
# Copy in the extensions script
|
||||
COPY extensions.sh /docker-entrypoint-initdb.d/
|
||||
|
||||
# Set permissions
|
||||
RUN chmod 755 /docker-entrypoint-initdb.d/extensions.sh
|
||||
6
postgres_context/extensions.sh
Normal file
6
postgres_context/extensions.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||
create extension pg_trgm;
|
||||
select * FROM pg_extension;
|
||||
EOSQL
|
||||
Loading…
Add table
Add a link
Reference in a new issue