diff --git a/docker-compose.yml b/docker-compose.yml index f3f1c35..88d1a3b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,10 +2,9 @@ services: nextcloud-app: - #image: nextcloud:fpm build: ./app restart: always - mem_limit: 1g + mem_limit: 512m depends_on: - nextcloud-database - nextcloud-redis @@ -30,6 +29,7 @@ nextcloud-web: build: ./web restart: always + mem_limit: 512m ports: - "${NEXTCLOUD_WEB_BIND:-127.0.0.1}:${NEXTCLOUD_WEB_PORT:-8080}:80" volumes: @@ -45,7 +45,7 @@ nextcloud-database: image: mariadb:10.2 restart: always - mem_limit: 2g + mem_limit: 1g command: mysqld --skip-name-resolve --skip-host-cache --log-warnings=0 environment: - MYSQL_ROOT_PASSWORD=${NEXTCLOUD_DATABASE_ROOT} @@ -64,8 +64,37 @@ - mysql nextcloud-redis: + mem_limit: 1g image: redis restart: always + networks: + nextcloud-network: + + nextcloud-cron: + build: ./app + restart: always + volumes: + - ./data/app:/var/www/html + user: www-data + mem_limit: 256m + entrypoint: | + bash -c 'bash -s <