-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (39 loc) · 1.18 KB
/
docker-compose.yml
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
35
36
37
38
39
40
41
version: '3.8'
services:
# MySQL
nextcloud-mysql8:
container_name: nextcloud-mysql8
image: mysql:8.0
command: mysqld --default-authentication-plugin=mysql_native_password --character-set-server=utf8 --collation-server=utf8_unicode_ci
env_file: .env
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
ports:
- "3306:3306"
volumes:
- ./db_mysql/my.cnf:/etc/mysql/conf.d/my.cnf
- ${VOLUME_PATH}/NextNAS-MySQL/db/data:/var/lib/mysql
- ${VOLUME_PATH}/NextNAS-MySQL/sql:/docker-entrypoint-initdb.d
nextcloud:
image: nextcloud
container_name: nextcloud
ports:
- ${NEXTCLOUD_PORT}:80
env_file:
- .env
links:
- nextcloud-mysql8
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_HOST: nextcloud-mysql8
volumes:
- ${VOLUME_PATH}/NextNAS/html:/var/www/html
- ${VOLUME_PATH}/NextNAS/data:/var/www/html/data
- /etc/localtime:/etc/localtime:ro
restart: always