-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit
More file actions
executable file
·25 lines (19 loc) · 847 Bytes
/
init
File metadata and controls
executable file
·25 lines (19 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
set -e
# Generate SSL certificates
echo "Generating SSL certificates..."
mkcert -key-file meta/compose/traefik/hyvor.localhost.key.pem -cert-file meta/compose/traefik/hyvor.localhost.pem hyvor.localhost
mkcert -key-file meta/compose/traefik/wildcard.hyvor.localhost.key.pem -cert-file meta/compose/traefik/wildcard.hyvor.localhost.pem "*.hyvor.localhost"
# Create docker network if not exists
echo "Creating docker network..."
docker network inspect hyvor-network >/dev/null 2>&1 || docker network create hyvor-network
# Create data directories
echo "Creating data directories..."
mkdir -p data/minio data/mailpit data/postgres
components="core talk blogs post relay agora reader"
# Minio buckets
echo "Creating Minio buckets..."
# create dir in data/minio for each
for bucket in $components; do
mkdir -p data/minio/$bucket
done