1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| cat > /root/docker-compose/nextcloud/docker-compose.yml << EOF 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=#自己喜欢 - MYSQL_PASSWORD=#自己喜欢 - MYSQL_DATABASE=nextcloud - MYSQL_USER=nextcloud
app: image: nextcloud restart: always ports: - 9999:80 links: - db volumes: - nextcloud:/var/www/html environment: - MYSQL_PASSWORD=#自己喜欢 - MYSQL_DATABASE=nextcloud - MYSQL_USER=nextcloud EOF
|