104-docker-compose
docker-compose¶
permission error
ERROR : Failed to create the directory /var/lib/pgadmin/sessions:
[Errno 13] Permission denied: '/var/lib/pgadmin/sessions'
HINT : Create the directory /var/lib/pgadmin/sessions, ensure it is writeable by
'pgadmin', and try again, or, create a config_local.py file
and override the SESSION_DB_PATH setting per
https://www.pgadmin.org/docs/pgadmin4/7.1/config_py.html
database
FILE := $(abspath $(lastword $(MAKEFILE_LIST)))
CURR_DIR := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
init:
docker network inspect docker_dev_network >/dev/null 2>&1 || \
docker network create docker_dev_network
mysql:
docker-compose -f docker-compose.mysql.yml up -d
mysql-stop:
docker-compose -f docker-compose.mysql.yml down
mycli:
mycli -u root -h localhost -P 13306 sfdc
postgres:
docker-compose -f docker-compose.postgres.yml up -d
postgres-stop:
docker-compose -f docker-compose.postgres.yml down
pgadmin-permission:
sudo chown -R 5050:5050 tmp/pgadmin/