Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.8"
- services:
- nextcloud:
- image: nextcloud:25-apache
- container_name: nextcloud
- environment:
- - MYSQL_HOST=mariadb
- - REDIS_HOST=redis
- restart: always
- volumes:
- - "/data/nextcloud-technical/nextcloud/my-nextcloud.ini:/usr/local/etc/php/conf.d/nextcloud.ini" # this increases the php memory limit ans max upload size
- - "/data/nextcloud-technical/nextcloud:/var/www/html"
- - "/data/nextcloud-data:/data"
- links:
- - mariadb
- depends_on:
- - mariadb
- - redis
- ports:
- - "127.0.0.1:8080:80"
- networks:
- internal:
- ipv4_address: 172.16.24.100
- mariadb:
- image: mariadb:10.9
- container_name: nextcloud-mariadb
- command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
- environment:
- MARIADB_ROOT_PASSWORD: "..."
- MARIADB_DATABASE: "nextcloud"
- MARIADB_AUTO_UPGRADE: "true"
- restart: always
- volumes:
- - "/data/nextcloud-technical/mariadb/docker-entrypoint.d:/docker-entrypoint-initdb.d"
- - "/data/nextcloud-technical/mariadb/db:/var/lib/mysql"
- networks:
- internal:
- ipv4_address: 172.16.24.101
- cron:
- image: nextcloud:25-apache
- container_name: nextcloud-cron
- volumes:
- - "/data/nextcloud-technical/nextcloud:/var/www/html"
- - "/data/nextcloud-data:/data"
- depends_on:
- - nextcloud
- - mariadb
- - redis
- networks:
- internal:
- ipv4_address: 172.16.24.102
- entrypoint: /cron.sh
- redis:
- image: redis:7.0
- container_name: nextcloud-redis
- restart: always
- networks:
- internal:
- ipv4_address: 172.16.24.103
- networks:
- internal:
- ipam:
- driver: default
- config:
- - subnet: '172.16.24.0/24'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement