diff --git a/docker-compose.yml b/docker-compose.yml index 4a8e0d4..93eb6de 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,8 @@ services: build: . container_name: ${NC_CONTAINER_NAME:-nextcloud} restart: ${NC_RESTART:-unless-stopped} + expose: + - 9000 depends_on: - db volumes: @@ -27,6 +29,8 @@ services: image: ${DB_IMG:-mariadb}:${DB_TAG:-latest} container_name: ${DB_CONTAINER_NAME:-nextcloud-db} restart: ${DB_RESTART:-unless-stopped} + expose: + - 3306 volumes: - ${LOCAL_STACK_DIR}/db/data:/var/lib/mysql networks: diff --git a/nextcloud.env.example b/nextcloud.env.example index e0907f1..cbe80c9 100644 --- a/nextcloud.env.example +++ b/nextcloud.env.example @@ -10,6 +10,6 @@ PHP_UPLOAD_LIMIT=1024M # Reverse-proxy and certbot VIRTUAL_HOST=subdomain.domain.tld -VIRTUAL_PORT=80 +VIRTUAL_PORT=9000 LETSENCRYPT_HOST=subdomain.domain.tld LETSENCRYPT_EMAIL=username@domain.tld