diff --git a/docker-compose.nextcloud-aio.yml b/docker-compose.nextcloud-aio.yml deleted file mode 100644 index 2b8fc385..00000000 --- a/docker-compose.nextcloud-aio.yml +++ /dev/null @@ -1,36 +0,0 @@ -services: - nextcloud-aio-mastercontainer: - image: nextcloud/all-in-one:latest - init: true - restart: always - container_name: nextcloud-aio-mastercontainer # This line is not allowed to be changed as otherwise AIO will not work correctly - volumes: - - nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This line is not allowed to be changed as otherwise the built-in backup solution will not work - - /var/run/docker.sock:/var/run/docker.sock:ro # May be changed on macOS, Windows or docker rootless. See the applicable documentation. If adjusting, don't forget to also set 'WATCHTOWER_DOCKER_SOCKET_PATH'! - ports: - - 8888:8080 - environment: # Is needed when using any of the options below - # - AIO_DISABLE_BACKUP_SECTION=false # Setting this to true allows to hide the backup section in the AIO interface. See https://github.com/nextcloud/all-in-one#how-to-disable-the-backup-section - - APACHE_PORT=11000 # Is needed when running behind a web server or reverse proxy (like Apache, Nginx, Cloudflare Tunnel and else). See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md - - APACHE_IP_BINDING=127.0.0.1 # Should be set when running behind a web server or reverse proxy (like Apache, Nginx, Cloudflare Tunnel and else) that is running on the same host. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md - - NEXTCLOUD_UPLOAD_LIMIT=10G # Can be adjusted if you need more. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-upload-limit-for-nextcloud - - NEXTCLOUD_MAX_TIME=3600 # Can be adjusted if you need more. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-max-execution-time-for-nextcloud - - NEXTCLOUD_MEMORY_LIMIT=512M # Can be adjusted if you need more. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-php-memory-limit-for-nextcloud - - NEXTCLOUD_STARTUP_APPS=deck twofactor_totp tasks calendar contacts notes # Allows to modify the Nextcloud apps that are installed on starting AIO the first time. See https://github.com/nextcloud/all-in-one#how-to-change-the-nextcloud-apps-that-are-installed-on-the-first-startup - - -volumes: # If you want to store the data on a different drive, see https://github.com/nextcloud/all-in-one#how-to-store-the-filesinstallation-on-a-separate-drive - nextcloud_aio_mastercontainer: - name: nextcloud_aio_mastercontainer # This line is not allowed to be changed as otherwise the built-in backup solution will not work - -# # Optional: If you need ipv6, follow step 1 and 2 of https://github.com/nextcloud/all-in-one/blob/main/docker-ipv6-support.md first and then uncomment the below config in order to activate ipv6 for the internal nextcloud-aio network. -# # Please make sure to uncomment also the networking lines of the mastercontainer above in order to actually create the network with docker-compose -# networks: -# nextcloud-aio: -# name: nextcloud-aio # This line is not allowed to be changed as otherwise the created network will not be used by the other containers of AIO -# driver: bridge -# enable_ipv6: true -# ipam: -# driver: default -# config: -# - subnet: fd12:3456:789a:2::/64 # IPv6 subnet to use diff --git a/docker-compose.nextcloud.yml b/docker-compose.nextcloud.yml new file mode 100644 index 00000000..b1188853 --- /dev/null +++ b/docker-compose.nextcloud.yml @@ -0,0 +1,75 @@ +version: "3" +volumes: + nextcloud-data: + nextcloud-db: + npm-data: + npm-ssl: + npm-db: + +networks: + frontend: + # add this if the network is already existing! + # external: true + backend: + +services: + nextcloud-app: + image: nextcloud + restart: always + volumes: + - nextcloud-data:/var/www/html + environment: + - MYSQL_PASSWORD=replace-with-secure-password + - MYSQL_DATABASE=nextcloud + - MYSQL_USER=nextcloud + - MYSQL_HOST=nextcloud-db + networks: + - frontend + - backend + + nextcloud-db: + image: mariadb + restart: always + command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW + volumes: + - nextcloud-db:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD=replace-with-secure-password + - MYSQL_PASSWORD=replace-with-secure-password + - MYSQL_DATABASE=nextcloud + - MYSQL_USER=nextcloud + networks: + - backend + + npm-app: + image: jc21/nginx-proxy-manager:latest + restart: always + ports: + - "80:80" + - "81:81" + - "443:443" + environment: + - DB_MYSQL_HOST=npm-db + - DB_MYSQL_PORT=3306 + - DB_MYSQL_USER=npm + - DB_MYSQL_PASSWORD=replace-with-secure-password + - DB_MYSQL_NAME=npm + volumes: + - npm-data:/data + - npm-ssl:/etc/letsencrypt + networks: + - frontend + - backend + + npm-db: + image: jc21/mariadb-aria:latest + restart: always + environment: + - MYSQL_ROOT_PASSWORD=replace-with-secure-password + - MYSQL_DATABASE=npm + - MYSQL_USER=npm + - MYSQL_PASSWORD=replace-with-secure-password + volumes: + - npm-db:/var/lib/mysql + networks: + - backend \ No newline at end of file