Seafile : pull images before podman-compose
This commit is contained in:
parent
402c510ae3
commit
e314570a6b
|
@ -29,9 +29,14 @@ SEAFILE_ADMIN_EMAIL=${GARBAYE_SEAFILE_ADMIN_EMAIL}
|
|||
EOT
|
||||
|
||||
export seafile_release
|
||||
export mariadb_release
|
||||
export memcached_release
|
||||
export listen_if
|
||||
export listen_port
|
||||
|
||||
podman pull docker.io/seafileltd/seafile-mc:${seafile_release} &&
|
||||
podman pull docker.io/library/memcached:${memcached_release} &&
|
||||
podman pull docker.io/library/mariadb:${mariadb_release} &&
|
||||
podman-compose up -d &&
|
||||
echo -n "Waiting for seahub_settings.py " &&
|
||||
while [ ! -e `get_podman_volume_path ${datavolume}`/seafile/conf/seahub_settings.py ]; do
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
version: '2.0'
|
||||
services:
|
||||
db:
|
||||
image: docker.io/library/mariadb:10.3
|
||||
image: "docker.io/library/mariadb:${mariadb_release}"
|
||||
container_name: seafile-db
|
||||
environment:
|
||||
- MYSQL_LOG_CONSOLE=true
|
||||
|
@ -13,7 +13,7 @@ services:
|
|||
- seafile-net
|
||||
|
||||
memcached:
|
||||
image: docker.io/library/memcached:1.6
|
||||
image: "docker.io/library/memcached:${memcached_release}"
|
||||
container_name: seafile-memcached
|
||||
command: memcached -m 256
|
||||
networks:
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
pod_name='podman-seafile'
|
||||
service_name="pod-${pod_name}.service"
|
||||
mariadb_release='10.3'
|
||||
memcached_release='1.6'
|
||||
seafile_release='8.0.8'
|
||||
dbvolume='podman-seafile_seafile-db'
|
||||
datavolume='podman-seafile_seafile-data'
|
||||
|
|
Loading…
Reference in a new issue