-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-seafile-pro-with-podman.sh
64 lines (52 loc) · 1.92 KB
/
deploy-seafile-pro-with-podman.sh
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
# This script is used to deploy and update Seafile on ursini
# Start with the following env if this is a new server
podman login -u seafile -p 'PutYourPasswordHERE' docker.seadrive.org
podman pull docker.io/library/mariadb
podman pull docker.io/library/memcached
podman pull docker.io/seafileltd/elasticsearch-with-ik:5.6.16
podman pull docker.seadrive.org/seafileltd/seafile-pro-mc
podman pod rm -f seafile
podman pod create -p 8003:80 --name seafile
podman volume create seafile-mysql-data
podman volume create seafile-elastic
podman volume create seafile-data
# Create MariaDB container in seafile pod
podman create \
--pod seafile \
--name seafile-db \
-e MYSQL_ROOT_PASSWORD='mysqlrootpw' \
-e MYSQL_LOG_CONSOLE=true \
-v seafile-mysql-data:/var/lib/mysql \
mariadb
# Create memcached container in seafile pod
podman create \
--pod seafile \
--name seafile-memcached \
memcached
#--entrypoint '/usr/local/bin/memcached -m 256' \
# Create elasticsearch container in seafile pod
podman create \
--pod seafile \
--name seafile-elasticsearch \
-e discovery.type=single-node \
-e bootstrap.memory_lock=true \
-e "ES_JAVA_OPTS=-Xms1g -Xmx1g" \
-v seafile-elastic:/usr/share/elasticsearch/data \
docker.io/seafileltd/elasticsearch-with-ik:5.6.16
# Create seafile container in seafile pod
podman create \
--pod seafile \
--name seafile-seafile \
-v seafile-data:/shared \
-e DB_HOST=127.0.0.1 \
-e DB_ROOT_PASSWD='mysqlrootpw' \
-e TIME_ZONE='Europe/Zurich' \
-e SEAFILE_ADMIN_EMAIL='alice@example.com' \
-e SEAFILE_ADMIN_PASSWORD='sadfHH&Ad9sadf' \
-e SEAFILE_SERVER_LETSENCRYPT=false \
-e SEAFILE_SERVER_HOSTNAME='seafile.example.com \
docker.seadrive.org/seafileltd/seafile-pro-mc
podman start seafile-memcached seafile-db seafile-elasticsearch
sleep 30
podman start seafile-seafile