Changes between Version 26 and Version 27 of DevWikiDockerTesting
- Timestamp:
- 01/30/23 13:13:41 (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevWikiDockerTesting
v26 v27 27 27 --name postgis-dev \ 28 28 --mount type=bind,source="$(pwd)/projects",target=/projects \ 29 -p 6445:5436/tcp \ 29 -p 6432:5432/tcp \ 30 -p 6433:5433/tcp \ 31 -p 6434:5434/tcp \ 32 -p 6435:5435/tcp \ 33 -p 6436:5436/tcp \ 34 -p 6437:5437/tcp \ 30 35 docker.osgeo.org/postgis/build-test:trisquel3 tail -f /dev/null 31 36 … … 36 41 37 42 38 #once started you can attach to it43 #once started you can attach to the container using 39 44 docker exec -it postgis-dev /bin/bash 40 45 … … 50 55 # change whatever to something more secure, if you care 51 56 psql -U postgres -p 5436 -c "ALTER ROLE postgres PASSWORD 'whatever';" 52 echo "host all all 0.0.0.0/0 scram-sha-256" >> /etc/postgresql/${PGVER}/main/pg_hba. 57 echo "host all all 0.0.0.0/0 scram-sha-256" >> /etc/postgresql/${PGVER}/main/pg_hba.conf 58 #shows you list of associate ports for each postgres version (connecting from your host machine would be 6 instead of 5) 59 pg_lsclusters 60 53 61 54 62 service postgresql restart ${PGVER}