add test compose

This commit is contained in:
2022-05-27 10:48:37 +08:00
parent 7b5c3432be
commit 3e101ee140
10 changed files with 385 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
version: '2'
services:
db:
image: mariadb
restart: unless-stopped
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- .\data\db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root_password
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
restart: unless-stopped
ports:
- 8999:80
links:
- db
volumes:
- .\data\nextcloud:/var/www/html
environment:
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db