From 5320b1c8db9a7a1937dc0587ec613ab7637f8872 Mon Sep 17 00:00:00 2001 From: Ravinou Date: Sat, 31 Aug 2024 18:33:25 +0200 Subject: [PATCH] =?UTF-8?q?doc:=20=F0=9F=93=9A=20"version"=20in=20docker-c?= =?UTF-8?q?ompose=20is=20now=20deprecated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 57 +++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f8f9e1b..d89ec77 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,30 +1,29 @@ -version: '3' services: - borgwarehouse: - container_name: borgwarehouse - # If you want to build the image yourself, uncomment the following lines and comment the image line - #build: - # context: . - # dockerfile: Dockerfile - # args: - # - UID=${UID} - # - GID=${GID} - image: borgwarehouse/borgwarehouse - user: '${UID:?UID variable missing}:${GID:?GID variable missing}' - ports: - - '${WEB_SERVER_PORT:?WEB_SERVER_PORT variable missing}:3000' - - '${SSH_SERVER_PORT:?SSH_SERVER_PORT variable missing}:22' - env_file: - - .env - volumes: - - ${CONFIG_PATH:?CONFIG_PATH variable missing}:/home/borgwarehouse/app/config - - ${SSH_PATH:?SSH_PATH variable missing}:/home/borgwarehouse/.ssh - - ${SSH_HOST:?SSH_HOST variable missing}:/etc/ssh - - ${BORG_REPOSITORY_PATH:?BORG_REPOSITORY_PATH variable missing}:/home/borgwarehouse/repos - - ${TMP_PATH:?TMP_PATH variable missing}:/home/borgwarehouse/tmp - - ${LOGS_PATH:?LOGS_PATH variable missing}:/home/borgwarehouse/logs - # Apprise is used to send notifications, it's optional. http://apprise:8000 is the URL to use in BorgWarehouse. - apprise: - container_name: apprise - image: caronc/apprise - user: 'www-data:www-data' + borgwarehouse: + container_name: borgwarehouse + # If you want to build the image yourself, uncomment the following lines and comment the image line + #build: + # context: . + # dockerfile: Dockerfile + # args: + # - UID=${UID} + # - GID=${GID} + image: borgwarehouse/borgwarehouse + user: '${UID:?UID variable missing}:${GID:?GID variable missing}' + ports: + - '${WEB_SERVER_PORT:?WEB_SERVER_PORT variable missing}:3000' + - '${SSH_SERVER_PORT:?SSH_SERVER_PORT variable missing}:22' + env_file: + - .env + volumes: + - ${CONFIG_PATH:?CONFIG_PATH variable missing}:/home/borgwarehouse/app/config + - ${SSH_PATH:?SSH_PATH variable missing}:/home/borgwarehouse/.ssh + - ${SSH_HOST:?SSH_HOST variable missing}:/etc/ssh + - ${BORG_REPOSITORY_PATH:?BORG_REPOSITORY_PATH variable missing}:/home/borgwarehouse/repos + - ${TMP_PATH:?TMP_PATH variable missing}:/home/borgwarehouse/tmp + - ${LOGS_PATH:?LOGS_PATH variable missing}:/home/borgwarehouse/logs + # Apprise is used to send notifications, it's optional. http://apprise:8000 is the URL to use in BorgWarehouse. + apprise: + container_name: apprise + image: caronc/apprise + user: 'www-data:www-data'