49 lines
893 B
YAML
49 lines
893 B
YAML
version: '2'
|
|
|
|
volumes:
|
|
nextcloud:
|
|
db:
|
|
|
|
services:
|
|
db:
|
|
image: mariadb:10.6
|
|
restart: always
|
|
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
|
volumes:
|
|
- db:/var/lib/mysql
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=rootpw
|
|
- MYSQL_PASSWORD=password
|
|
- MYSQL_DATABASE=nextcloud
|
|
- MYSQL_USER=nextcloud
|
|
|
|
app:
|
|
image: nextcloud:fpm
|
|
restart: always
|
|
links:
|
|
- db
|
|
volumes:
|
|
- nextcloud:/var/www/html
|
|
environment:
|
|
- MYSQL_PASSWORD=password
|
|
- MYSQL_DATABASE=nextcloud
|
|
- MYSQL_USER=nextcloud
|
|
- MYSQL_HOST=db
|
|
- REDIS_HOST=redis
|
|
|
|
web:
|
|
image: nginx
|
|
restart: always
|
|
ports:
|
|
- 7777:80
|
|
links:
|
|
- app
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
volumes_from:
|
|
- app
|
|
|
|
redis:
|
|
image: redis:latest
|
|
restart: always
|