summaryrefslogtreecommitdiff
path: root/Applications/NextCloud/docker-compose.yml
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-09-18 15:56:31 +0200
committerDaniel Weipert <code@drogueronin.de>2023-09-18 15:57:46 +0200
commitb18e29b389792267269c77db711b54d38e6b9d59 (patch)
tree973ad914da9105cc526df1690cc99dc038fea5e4 /Applications/NextCloud/docker-compose.yml
initial commit
Diffstat (limited to 'Applications/NextCloud/docker-compose.yml')
-rw-r--r--Applications/NextCloud/docker-compose.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/Applications/NextCloud/docker-compose.yml b/Applications/NextCloud/docker-compose.yml
new file mode 100644
index 0000000..c5af0b4
--- /dev/null
+++ b/Applications/NextCloud/docker-compose.yml
@@ -0,0 +1,41 @@
+version: "3"
+
+services:
+ app:
+ image: "nextcloud"
+ restart: "unless-stopped"
+ environment:
+ - "MYSQL_DATABASE=${DB_NAME}"
+ - "MYSQL_USER=${DB_USER}"
+ - "MYSQL_PASSWORD=${DB_PASSWORD}"
+ - "MYSQL_HOST=db"
+ volumes:
+ - "./volumes/nextcloud:/var/www/html"
+ - "${EXTERNAL_STORAGE_PATH_HOST}:${EXTERNAL_STORAGE_PATH_CONTAINER}"
+ networks:
+ - "internal"
+ - "traefik"
+ labels:
+ - "traefik.enable=true"
+ - "traefik.docker.network=${TRAEFIK_NETWORK}"
+ - "traefik.http.routers.nextcloud.rule=Host(`${DOMAIN}`)"
+ - "traefik.http.routers.nextcloud.entrypoints=web"
+
+ db:
+ image: "mariadb"
+ restart: "unless-stopped"
+ command: "--transaction-isolation=READ-COMMITTED --binlog-format=ROW"
+ environment:
+ - "MYSQL_DATABASE=${DB_NAME}"
+ - "MYSQL_USER=${DB_USER}"
+ - "MYSQL_PASSWORD=${DB_PASSWORD}"
+ - "MYSQL_ROOT_PASSWORD=${DB_PASSWORD}"
+ volumes:
+ - "./volumes/db:/var/lib/mysql"
+ networks:
+ - "internal"
+
+networks:
+ internal:
+ traefik:
+ name: "${TRAEFIK_NETWORK}"