You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
nextcloud: |
|
image: nextcloud |
|
container_name: nextcloud_web |
|
links: |
|
- nextcloud-db:nextcloud-db |
|
environment: |
|
- UID=1000 |
|
- GID=1000 |
|
- UPLOAD_MAX_SIZE=5G |
|
- APC_SHM_SIZE=128M |
|
- OPCACHE_MEM_SIZE=128 |
|
- CRON_PERIOD=15m |
|
- TZ=Aisa/Shanghai |
|
- ADMIN_USER=liucnt |
|
- ADMIN_PASSWORD=6724130ltm |
|
- DOMAIN=localhost |
|
- DB_TYPE=mysql |
|
- DB_NAME=nextcloud |
|
- DB_USER=nextcloud |
|
- DB_PASSWORD=6724130ltm |
|
- DB_HOST=nextcloud-db |
|
volumes: |
|
# 文件会放在宿主机的 `/docker/nextcloud` 目录,如果不存在会自动创建 |
|
- /docker/nextcloud/data:/data |
|
- /docker/nextcloud/config:/config |
|
- /docker/nextcloud/apps:/apps2 |
|
- /docker/nextcloud/themes:/nextcloud/themes |
|
- /ssd:/storage |
|
expose: |
|
- 80 |
|
ports: |
|
# 宿主机端口:镜像端口 |
|
- 8080:80/tcp |
|
restart: always |
|
|
|
nextcloud-db: |
|
image: mysql/mysql-server |
|
container_name: nextcloud_db |
|
volumes: |
|
# 数据库文件会放在宿主机的 `/docker/nextcloud/db` 目录,如果不存在会自动创建 |
|
- /docker/nextcloud/db:/var/lib/mysql |
|
environment: |
|
- MYSQL_ROOT_PASSWORD=6724130ltm |
|
- MYSQL_DATABASE=nextcloud |
|
- MYSQL_USER=nextcloud |
|
- MYSQL_PASSWORD=6724130ltm |
|
restart: always
|
|
|