This commit is contained in:
2024-10-28 07:54:50 +01:00
commit b2ceb31809
5 changed files with 184 additions and 0 deletions

0
nextcloud/.env Normal file
View File

View File

@@ -0,0 +1,69 @@
version: '3.7'
services:
nc:
image: nextcloud:stable
container_name: nextcloud
restart: unless-stopped
ports:
- 8082:80
volumes:
- nc_data:/var/www/html
- apache2:/etc/apache2
- ./php.ini:/usr/local/etc/php/conf.d/php-custom.ini
networks:
- redisnet
- dbnet
environment:
- REDIS_HOST=redis
- MYSQL_HOST=db
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=
depends_on:
- db
- redis
redis:
image: redis:alpine
container_name: redis
restart: always
networks:
- redisnet
db:
image: mariadb:10.5.9
container_name: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db_data:/var/lib/mysql
networks:
- dbnet
environment:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- TZ=Europe/Warsaw
phpmyadmin:
depends_on:
- db
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin:latest
restart: always
ports:
- 8081:80
environment:
PMA_HOST: db
networks:
- dbnet
volumes:
db_data:
nc_data:
apache2:
networks:
dbnet:
redisnet: