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.
docker-nextcloud/docker-compose.yml

44 lines
1018 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:
- db
4 years ago
volumes:
- ${LOCAL_STACK_DIR}/nextcloud/data:/var/www/html
- /etc/timezone:/etc/timezone:ro
networks:
- default
- nextcloud
4 years ago
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
networks:
- nextcloud
4 years ago
env_file:
- nc_db.env
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
networks:
default:
external:
name: ${NETWORK}
nextcloud:
external: false