From 83288dad9686ccdbeac73e2a4987551ea07fe3aa Mon Sep 17 00:00:00 2001 From: Ryan Harg Date: Wed, 3 Jul 2024 12:11:49 +0000 Subject: [PATCH] Initial configuration --- .gitignore | 5 +++++ docker-compose.yml | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .gitignore create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57f8634 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +config +data +mariadb +*.env + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a79065f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,38 @@ +services: + + nextcloud: + container_name: nextcloud + image: linuxserver/nextcloud:29.0.3 + ports: + - "7777:80" + restart: unless-stopped + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Berlin + env_file: + - db.env + volumes: + - ./config:/config + - ./data:/data + depends_on: + - db + networks: + - nginx_default + - nextcloud + + db: + container_name: maria_db + image: mariadb:10.11 + restart: unless-stopped + env_file: + - db.env + volumes: + - ./mariadb:/var/lib/mysql + networks: + - nextcloud + +networks: + nginx_default: + external: true + nextcloud: