move python stuff to postgres container

This commit is contained in:
Ed Chalstrey 2022-02-11 11:57:48 +00:00
parent e9a3b3eb1b
commit 868af65745
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,6 @@ RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y build-essential wget
RUN apt-get install -y python3 python3-pip python3-dev python3-venv
RUN apt-get install parallel -y
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait

View File

@ -8,6 +8,8 @@ apt-get install -y postgresql-contrib libpq-dev postgis
apt-get install -y postgresql-13-postgis-3
apt-get install -y gdal-bin libspatialindex-dev libgeos-dev libproj-dev
apt-get install -y python3 python3-pip python3-dev python3-venv
sed -i "s/#\?listen_address.*/listen_addresses '*'/" /etc/postgresql/13/main/postgresql.conf
echo "host all all all md5" | tee --append /etc/postgresql/13/main/pg_hba.conf > /dev/null
service postgresql restart