- Set secrets described in
compose.yaml
in.env
file - If need, copy
compose.override.example.yaml
tocompose.override.yaml
and modify - Run containers (docker compose up -d)
chown nobody:nogroup /etc/nginx/cert
(acme.autossl cert storage)- apply SQL commands in
hasura/schema.sql
to Postgres (Hasura schema and MeritRank-related triggers) - upload
hasura/metadata.json
in Hasura console
- Run
./openresty/scripts/create_cert_and_keys.sh
- Build images (docker build --no-cache -t vbulavintsev/openresty-tentura:vX.Y.Z .)
backup schema and data:
docker exec -t postgres pg_dump --inserts -U postgres --schema public > dump_all.sql
restore:
cat dump_all.sql | docker exec -i postgres psql -U postgres