Install Pinry

This commit is contained in:
2020-12-13 16:37:09 +00:00
parent bf4ecb6987
commit f4d7ef9e8c
4 changed files with 36 additions and 0 deletions

View File

@@ -40,3 +40,5 @@ echo "no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty $(cat /hom
systemctl enable docker --now systemctl enable docker --now
docker-compose -f "/opt/scarif/docker-compose.yml" --env-file "/opt/scarif/.env" up -d 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

View File

@@ -1,5 +1,6 @@
CREATE DATABASE IF NOT EXISTS `monica`; CREATE DATABASE IF NOT EXISTS `monica`;
CREATE DATABASE IF NOT EXISTS `gitea`; CREATE DATABASE IF NOT EXISTS `gitea`;
CREATE DATABASE IF NOT EXISTS `pinry`;
# Nextcloud will automatically create a database on setup # Nextcloud will automatically create a database on setup
#CREATE DATABASE IF NOT EXISTS `nextcloud`; #CREATE DATABASE IF NOT EXISTS `nextcloud`;

View File

@@ -93,6 +93,17 @@ services:
- "tower.scarif.local:${LOCAL_IP}" - "tower.scarif.local:${LOCAL_IP}"
- "office.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: gitea:
image: gitea/gitea:1 image: gitea/gitea:1
environment: environment:
@@ -172,6 +183,7 @@ services:
- gitea - gitea
- collabora - collabora
- cadvisor - cadvisor
- pinry
- certs - certs
ports: ports:
- 80:80 - 80:80
@@ -196,6 +208,7 @@ volumes:
nextcloud: nextcloud:
certs: certs:
dashboard: dashboard:
pinry:
networks: networks:
db: db:

View File

@@ -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 { server {
listen 80 default_server; listen 80 default_server;
listen [::]:80 default_server; listen [::]:80 default_server;