2020-03-19 10:31:12 +00:00
|
|
|
services:
|
|
|
|
nc:
|
|
|
|
image: nextcloud:apache
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
volumes:
|
|
|
|
- nc_data:/var/www/html
|
|
|
|
networks:
|
|
|
|
- redisnet
|
|
|
|
- dbnet
|
|
|
|
environment:
|
|
|
|
- REDIS_HOST=redis
|
|
|
|
- MYSQL_HOST=db
|
|
|
|
- MYSQL_DATABASE=nextcloud
|
|
|
|
- MYSQL_USER=nextcloud
|
|
|
|
- MYSQL_PASSWORD=nextcloud
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- redisnet
|
2021-04-30 20:29:16 +00:00
|
|
|
expose:
|
|
|
|
- 6379
|
2020-03-19 10:31:12 +00:00
|
|
|
db:
|
2021-09-13 20:27:54 +00:00
|
|
|
image: mariadb:10.5
|
2020-03-19 10:31:12 +00:00
|
|
|
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=nextcloud
|
|
|
|
- MYSQL_PASSWORD=nextcloud
|
2021-04-30 20:29:16 +00:00
|
|
|
expose:
|
|
|
|
- 3306
|
2020-03-19 10:31:12 +00:00
|
|
|
volumes:
|
|
|
|
db_data:
|
|
|
|
nc_data:
|
|
|
|
networks:
|
|
|
|
dbnet:
|
|
|
|
redisnet:
|