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.
37 lines
911 B
37 lines
911 B
4 years ago
|
version: "3"
|
||
|
|
||
|
services:
|
||
|
nextcloud:
|
||
|
## Using Dockerfile because I want tu use 'cron'
|
||
|
## and I need to add it first to the pure image
|
||
|
#image: nextcloud:latest
|
||
|
build: .
|
||
|
container_name: ${NC_CONTAINER_NAME:-nextcloud}
|
||
|
restart: ${NC_RESTART:-unless-stopped}
|
||
|
depends_on:
|
||
|
- cloud-db
|
||
|
volumes:
|
||
|
- ${LOCAL_STACK_DIR}/nextcloud/data:/var/www/html
|
||
|
- /etc/timezone:/etc/timezone:ro
|
||
|
env_file:
|
||
|
- nextcloud.env
|
||
|
- nc_db.env
|
||
|
environment:
|
||
|
MYSQL_HOST: ${MYSQL_HOST:-nextcloud-db}
|
||
|
|
||
|
db:
|
||
|
image: ${DB_IMG:-mariadb}:${DB_TAG:-latest}
|
||
|
container_name: ${DB_CONTAINER_NAME:-nextcloud-db}
|
||
|
restart: ${DB_RESTART:-unless-stopped}
|
||
|
volumes:
|
||
|
- ${LOCAL_STACK_DIR}/db/data:/var/lib/mysql
|
||
|
env_file:
|
||
|
- nc_db.env
|
||
|
environment:
|
||
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||
|
|
||
|
networks:
|
||
|
default:
|
||
|
external:
|
||
|
name: ${NETWORK}
|