Seafile : pull images before podman-compose

This commit is contained in:
Gitouche 2022-02-25 13:30:57 +01:00
parent 402c510ae3
commit e314570a6b
3 changed files with 9 additions and 2 deletions

View file

@ -29,9 +29,14 @@ SEAFILE_ADMIN_EMAIL=${GARBAYE_SEAFILE_ADMIN_EMAIL}
EOT EOT
export seafile_release export seafile_release
export mariadb_release
export memcached_release
export listen_if export listen_if
export listen_port 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 && podman-compose up -d &&
echo -n "Waiting for seahub_settings.py " && echo -n "Waiting for seahub_settings.py " &&
while [ ! -e `get_podman_volume_path ${datavolume}`/seafile/conf/seahub_settings.py ]; do while [ ! -e `get_podman_volume_path ${datavolume}`/seafile/conf/seahub_settings.py ]; do

View file

@ -1,7 +1,7 @@
version: '2.0' version: '2.0'
services: services:
db: db:
image: docker.io/library/mariadb:10.3 image: "docker.io/library/mariadb:${mariadb_release}"
container_name: seafile-db container_name: seafile-db
environment: environment:
- MYSQL_LOG_CONSOLE=true - MYSQL_LOG_CONSOLE=true
@ -13,7 +13,7 @@ services:
- seafile-net - seafile-net
memcached: memcached:
image: docker.io/library/memcached:1.6 image: "docker.io/library/memcached:${memcached_release}"
container_name: seafile-memcached container_name: seafile-memcached
command: memcached -m 256 command: memcached -m 256
networks: networks:

View file

@ -2,6 +2,8 @@
pod_name='podman-seafile' pod_name='podman-seafile'
service_name="pod-${pod_name}.service" service_name="pod-${pod_name}.service"
mariadb_release='10.3'
memcached_release='1.6'
seafile_release='8.0.8' seafile_release='8.0.8'
dbvolume='podman-seafile_seafile-db' dbvolume='podman-seafile_seafile-db'
datavolume='podman-seafile_seafile-data' datavolume='podman-seafile_seafile-data'