44 lines
No EOL
1.1 KiB
Text
Executable file
44 lines
No EOL
1.1 KiB
Text
Executable file
services:
|
|
# Service Nextcloud
|
|
nextcloud:
|
|
image: nextcloud:latest-alpine
|
|
container_name: nextcloud-${IP}-${PORT}
|
|
restart: unless-stopped
|
|
environment:
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
|
- MYSQL_USER=${MYSQL_USER}
|
|
- MYSQL_HOST=mariadb
|
|
- REDIS_HOST=redis
|
|
- REDIS_HOST_PASSWORD=${REDIS_PASSWORD}
|
|
- NEXTCLOUD_TRUSTED_DOMAINS=${DOMAIN}
|
|
volumes:
|
|
- ${DATA_DIR}/data:/var/www/html
|
|
depends_on:
|
|
- mariadb
|
|
- redis
|
|
ports:
|
|
- ${IP}:${PORT}:80
|
|
|
|
# Service MariaDB
|
|
mariadb:
|
|
image: mariadb:latest
|
|
container_name: mariadb
|
|
restart: unless-stopped
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
|
- MYSQL_USER=${MYSQL_USER}
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
|
volumes:
|
|
- ${DATA_DIR}/bdd:/var/lib/mysql
|
|
|
|
# Service Redis
|
|
redis:
|
|
image: redis:latest
|
|
container_name: redis
|
|
restart: unless-stopped
|
|
environment:
|
|
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
|
volumes:
|
|
- ${TEMP_DIR}:/data |