mirror of
https://github.com/paradizelost/docker.git
synced 2024-11-25 02:44:45 -06:00
42 lines
806 B
YAML
42 lines
806 B
YAML
version: '2'
|
|
|
|
volumes:
|
|
nextcloud:
|
|
db:
|
|
|
|
services:
|
|
db:
|
|
container_name: nextclouddb
|
|
hostname: nextclouddb
|
|
image: mariadb
|
|
logging:
|
|
options:
|
|
max-file: "3"
|
|
max-size: "10m"
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
restart: always
|
|
volumes:
|
|
- ./data/db:/var/lib/mysql
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
MYSQL_USER: ${MYSQL_USER}
|
|
|
|
app:
|
|
image: nextcloud
|
|
container_name: nextcloud
|
|
hostname: nextcloud
|
|
logging:
|
|
options:
|
|
max-file: "3"
|
|
max-size: "10m"
|
|
ports:
|
|
- 8087:80
|
|
links:
|
|
- db
|
|
volumes:
|
|
- ./data/nextcloud:/var/www/html
|
|
restart: always
|
|
|