podman-seafile : simplification .env

This commit is contained in:
Gitouche 2022-11-20 10:54:12 +01:00
parent 9abdce504e
commit 1f083de57f
2 changed files with 1 additions and 5 deletions

View file

@ -40,7 +40,7 @@ if ! podman image exists ${seafile_image}:${seafile_release}; then
fi fi
podman pull docker.io/library/memcached:${memcached_release} && podman pull docker.io/library/memcached:${memcached_release} &&
podman pull docker.io/library/mariadb:${mariadb_release} && podman pull docker.io/library/mariadb:${mariadb_release} &&
podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra " up -d && podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" 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
echo -n "." echo -n "."

View file

@ -5,8 +5,6 @@ services:
container_name: seafile-db container_name: seafile-db
environment: environment:
- MYSQL_LOG_CONSOLE=true - MYSQL_LOG_CONSOLE=true
env_file:
- .env
volumes: volumes:
- seafile-db:/var/lib/mysql:Z - seafile-db:/var/lib/mysql:Z
@ -26,8 +24,6 @@ services:
- DB_HOST=db - DB_HOST=db
- TIME_ZONE=Europe/Paris - TIME_ZONE=Europe/Paris
- SEAFILE_SERVER_LETSENCRYPT=false - SEAFILE_SERVER_LETSENCRYPT=false
env_file:
- .env
depends_on: depends_on:
- db - db
- memcached - memcached