-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·22 lines (21 loc) · 947 Bytes
/
run.sh
File metadata and controls
executable file
·22 lines (21 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -eux
docker pull ghcr.io/rekgrpth/pgadmin.docker
docker volume create pgadmin
docker network create --attachable --opt com.docker.network.bridge.name=docker docker || echo $?
docker stop pgadmin || echo $?
docker rm pgadmin || echo $?
docker run \
--detach \
--env GROUP_ID=$(id -g) \
--env LANG=ru_RU.UTF-8 \
--env TZ=Asia/Yekaterinburg \
--env USER_ID=$(id -u) \
--hostname pgadmin \
--mount type=bind,source=/etc/certs,destination=/etc/certs,readonly \
--mount type=bind,source=/run/postgresql,destination=/run/postgresql \
--mount type=volume,source=pgadmin,destination=/home \
--name pgadmin \
--network name=docker \
--publish target=8443,published=8443,mode=host \
--restart always \
ghcr.io/rekgrpth/pgadmin.docker gunicorn --threads "$(nproc)" --bind [::]:8443 --keyfile /etc/certs/server.key --certfile /etc/certs/server.crt --ca-certs /etc/certs/server.ca pgAdmin4:app