seafile : variabilisation des interfaces/ports
This commit is contained in:
parent
c5b00aa9d4
commit
e0fd77ea54
|
@ -28,7 +28,10 @@ SEAFILE_SERVER_HOSTNAME=${GARBAYE_SEAFILE_SERVER_HOSTNAME}
|
||||||
SEAFILE_ADMIN_EMAIL=${GARBAYE_SEAFILE_ADMIN_EMAIL}
|
SEAFILE_ADMIN_EMAIL=${GARBAYE_SEAFILE_ADMIN_EMAIL}
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
export GARBAYE_SEAFILE_SEAFILE_VERSION="${seafile_release}"
|
export seafile_release
|
||||||
|
export listen_if
|
||||||
|
export listen_port
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -20,10 +20,10 @@ services:
|
||||||
- seafile-net
|
- seafile-net
|
||||||
|
|
||||||
seafile:
|
seafile:
|
||||||
image: "docker.io/seafileltd/seafile-mc:${GARBAYE_SEAFILE_SEAFILE_VERSION}"
|
image: "docker.io/seafileltd/seafile-mc:${seafile_release}"
|
||||||
container_name: seafile
|
container_name: seafile
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8082:80"
|
- ${listen_if}:${listen_port}:80
|
||||||
volumes:
|
volumes:
|
||||||
- seafile-data:/shared:Z
|
- seafile-data:/shared:Z
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -5,6 +5,8 @@ service_name="pod-${pod_name}.service"
|
||||||
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'
|
||||||
|
listen_if="${GARBAYE_SEAFILE_ENV_LISTENIF:-127.0.0.1}"
|
||||||
|
listen_port="${GARBAYE_SEAFILE_ENV_LISTENPORT:-8082}"
|
||||||
get_default_iface_ipv4 GARBAYE_SEAFILE_SMTP_SERVER
|
get_default_iface_ipv4 GARBAYE_SEAFILE_SMTP_SERVER
|
||||||
GARBAYE_SEAFILE_SERVER_HOSTNAME="${GARBAYE_SEAFILE_ENV_SERVER_HOSTNAME:-seafile.garbaye.fr}"
|
GARBAYE_SEAFILE_SERVER_HOSTNAME="${GARBAYE_SEAFILE_ENV_SERVER_HOSTNAME:-seafile.garbaye.fr}"
|
||||||
GARBAYE_SEAFILE_ADMIN_PASSWORD="${GARBAYE_SEAFILE_ENV_ADMIN_PASSWORD:-asecret}"
|
GARBAYE_SEAFILE_ADMIN_PASSWORD="${GARBAYE_SEAFILE_ENV_ADMIN_PASSWORD:-asecret}"
|
||||||
|
|
Loading…
Reference in a new issue