etat_libre_2020/makefile
2020-05-16 14:25:11 -04:00

16 lines
788 B
Makefile

fix:
bash fix_sql.sh
build:
docker network create librenet
docker build --tag=etatdulibre .
docker run --name=etatdulibre --mount source=el_pgdata,target=/var/lib/postgresql/data --network=librenet -it -p 5432:5432 -p 2222:22 etatdulibre
run:
docker start etatdulibre
docker run --name=pgadminlibre --network=librenet -p 80:80 -e 'PGADMIN_DEFAULT_EMAIL=etatdulibre@librenet' -e 'PGADMIN_DEFAULT_PASSWORD=etatdulibre' -e 'PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION=True' -e 'PGADMIN_CONFIG_LOGIN_BANNER="Authorised users only!"' -e 'PGADMIN_CONFIG_CONSOLE_LOG_LEVEL=10' -d dpage/pgadmin4
clean:
-docker stop etatdulibre pgadminlibre
-docker container rm etatdulibre pgadminlibre
-docker image rm etatdulibre pgadminlibre
-docker network rm librenet
-docker volume rm el_pgdata