Install Pinry
This commit is contained in:
@@ -40,3 +40,5 @@ echo "no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty $(cat /hom
|
||||
systemctl enable docker --now
|
||||
|
||||
docker-compose -f "/opt/scarif/docker-compose.yml" --env-file "/opt/scarif/.env" up -d
|
||||
|
||||
docker exec -it scarif_pinry_1 python manage.py createsuperuser --settings=pinry.settings.docker
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
CREATE DATABASE IF NOT EXISTS `monica`;
|
||||
CREATE DATABASE IF NOT EXISTS `gitea`;
|
||||
CREATE DATABASE IF NOT EXISTS `pinry`;
|
||||
# Nextcloud will automatically create a database on setup
|
||||
#CREATE DATABASE IF NOT EXISTS `nextcloud`;
|
||||
|
||||
|
||||
@@ -93,6 +93,17 @@ services:
|
||||
- "tower.scarif.local:${LOCAL_IP}"
|
||||
- "office.scarif.local:${LOCAL_IP}"
|
||||
|
||||
pinry:
|
||||
image: 'getpinry/pinry'
|
||||
volumes:
|
||||
- pinry:/data
|
||||
- ./pinry/local_settings.py:/data/local_settings.py
|
||||
networks:
|
||||
- nginx
|
||||
- db
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
gitea:
|
||||
image: gitea/gitea:1
|
||||
environment:
|
||||
@@ -172,6 +183,7 @@ services:
|
||||
- gitea
|
||||
- collabora
|
||||
- cadvisor
|
||||
- pinry
|
||||
- certs
|
||||
ports:
|
||||
- 80:80
|
||||
@@ -196,6 +208,7 @@ volumes:
|
||||
nextcloud:
|
||||
certs:
|
||||
dashboard:
|
||||
pinry:
|
||||
|
||||
networks:
|
||||
db:
|
||||
|
||||
20
nginx.conf
20
nginx.conf
@@ -462,6 +462,26 @@ http {
|
||||
}
|
||||
}
|
||||
|
||||
upstream pinry-handler {
|
||||
server pinry:80;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/scarif.local.crt;
|
||||
ssl_certificate_key /etc/nginx/certs/scarif.local.key;
|
||||
|
||||
gzip_types text/plain text/css application/json application/x-javascript
|
||||
text/xml application/xml application/xml+rss text/javascript;
|
||||
|
||||
server_name research.scarif.local;
|
||||
|
||||
location / {
|
||||
proxy_pass http://pinry-handler;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
Reference in New Issue
Block a user