2024-03-26 02:06:46 +02:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
container_name: nextcloud
|
|
|
|
image: nextcloud
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8080:80
|
|
|
|
volumes:
|
|
|
|
- app:/var/www/html
|
2024-03-26 12:51:26 +02:00
|
|
|
- /mnt/data/nextcloud/files:/var/www/html/data
|
|
|
|
- /mnt/data/nextcloud/config:/var/www/html/config
|
2024-03-26 02:06:46 +02:00
|
|
|
environment:
|
|
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
|
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
|
|
|
- MYSQL_USER=${MYSQL_USER}
|
|
|
|
- MYSQL_HOST=${MYSQL_HOST}
|
2024-03-26 12:51:26 +02:00
|
|
|
networks:
|
2024-03-26 17:06:45 +02:00
|
|
|
- mariadb_default
|
2024-03-26 12:51:26 +02:00
|
|
|
- proxy
|
2024-03-26 02:06:46 +02:00
|
|
|
|
2024-03-26 12:51:26 +02:00
|
|
|
networks:
|
2024-03-26 17:06:45 +02:00
|
|
|
mariadb_default:
|
|
|
|
external: true
|
2024-03-26 12:51:26 +02:00
|
|
|
proxy:
|
|
|
|
name: proxy
|
|
|
|
external: true
|
2024-03-26 02:06:46 +02:00
|
|
|
|
|
|
|
volumes:
|
2024-03-26 02:18:39 +02:00
|
|
|
app:
|